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