Page 1 of 1

VestaCP nginx instead of apache for a site

Posted: Sat Sep 03, 2016 1:46 am
by erkinakbudak
Hi. I use VestaCP. I am running debian 7. I have many sites. All sites use apache + nginx (reverse proxy). I want just nginx for a site but other sites will use apache + nginx. Is it possible ? Thanks in advance

Re: VestaCP nginx instead of apache for a site

Posted: Wed Sep 06, 2017 7:35 am
by hdavis84
Is there a solution to the original poster's request? I, too, have websites that use apache, but would like specific sites use only nginx. Any help is appreciated!

Re: VestaCP nginx instead of apache for a site

Posted: Thu Sep 14, 2017 6:33 pm
by noogen
Yes, it is possible. You can simply use custom nginx conf to your custom site; though, everything has to be done manually from the terminal.

Take a look at /etc/nginx.conf, and notice that the last line include file from /etc/nginx/conf.d folder.

Code: Select all

include             /etc/nginx/conf.d/*.conf;
This mean that you can create custom yoursite.com.conf inside of /etc/nginx/conf.d folder. It may look something like this: https://gist.github.com/chadrien/5394508

This is how VestaCP does it. It has it's own custom nginx-server.conf which is setup on port 8083. It is using php-fpm instead of nginx -> apache -> fcgi for regular sites.