Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

VestaCP nginx instead of apache for a site

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
erkinakbudak
Posts: 1
Joined: Sat Sep 03, 2016 1:42 am

VestaCP nginx instead of apache for a site
  • Quote

Post by erkinakbudak » Sat Sep 03, 2016 1:46 am

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
Top

hdavis84
Posts: 13
Joined: Sat Apr 29, 2017 7:55 pm

Re: VestaCP nginx instead of apache for a site
  • Quote

Post by hdavis84 » Wed Sep 06, 2017 7:35 am

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!
Top

noogen
Posts: 66
Joined: Thu Jan 05, 2017 9:20 pm

Re: VestaCP nginx instead of apache for a site
  • Quote

Post by noogen » Thu Sep 14, 2017 6:33 pm

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


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password