Softaculous


Topic : Extra configuration for one server block only


Posted By: erile on August 5, 2019, 11:28 pm
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...

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.

Powered By AEF 1.0.8 © 2007-2008 Electron Inc.