We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
VestaCP nginx instead of apache for a site
-
- Posts: 1
- Joined: Sat Sep 03, 2016 1:42 am
VestaCP nginx instead of apache for a site
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
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
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.
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.
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 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.