Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Extra configuration for one server block only



Threaded Mode | Print  

 Extra configuration for one server block only (2 Replies, Read 16496 times)
erile
Group: Member
Post Group: Working Newbie
Posts: 64
Status:
Hello,

Using the Webuzo > Domain > Extra Configuration feature, we can extend both server block listening on port 80 and server block listening on port 443 (SSL).

But how to extend a single block (ie. the one about port 80 or the one about 443) only?

Let me know.
TIA

-----------------------
OpenVZ VPS, CentOS 7, Webuzo Premium / Desktop and full-stack dev w/ C, C++, Python, Perl, javascript...
IP: --   

Extra configuration for one server block only
erile
Group: Member
Post Group: Working Newbie
Posts: 64
Status:
OK, found the answer from Dhanya browsing the forum: https://www.softaculous.com/board/index.php?tid=14852&title=NGINX_REDIRECT#p44747

In my case it's not about a redirection, but the principle remains the same: to diferenciate server block on port 80 and server block on port 443, we have to do it in the underlying shared extra conf.

Code
if ($scheme = http) {
        ...
}


-----------------------
OpenVZ VPS, CentOS 7, Webuzo Premium / Desktop and full-stack dev w/ C, C++, Python, Perl, javascript...
IP: --   

Extra configuration for one server block only
Dhanya
Group: Member
Post Group: Working Member
Posts: 200
Status:
Hi,

Glad to know that your issue has been resolved.

Let us know if you face any issues further or have any further queries.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is March 28, 2024, 5:12 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.052