Welcome Guest. Please Login or Register  


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



Normal Mode | Print  

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: --   


Threads
 erile   Extra configuration for one server block only (2 Replies, Read 22977 times)
    |--  erile   OK, found the...   on August 5, 2019, 11:42 pm
    |--  Dhanya   Hi, Glad to...   on August 6, 2019, 10:34 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is November 2, 2025, 5:58 am.

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