Posted By: erile on August 5, 2019, 11:42 pm | Post: 1 |
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... |
Posted By: Dhanya on August 6, 2019, 10:34 am | Post: 2 |
Hi,
Glad to know that your issue has been resolved. Let us know if you face any issues further or have any further queries. |