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

Edit nginx configs?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Edit nginx configs?
  • Quote

Post by youradds » Thu Apr 06, 2017 7:11 am

Hi,

I've just installed Vesta on my new Linode server... very cool :) I have set it up to work with nginx. Where are the config's located? Normally ngninx builds them in /etc/nginx/sites-available/ , but I can't seem to find them.

Also, I'm assuming if I edit them they won't get overwritten? (I need to setup a reverse proxy to Apache, for example)

Thanks!

Andy
Top

rpr
Posts: 21
Joined: Mon Feb 13, 2017 1:18 pm

Re: Edit nginx configs?
  • Quote

Post by rpr » Thu Apr 06, 2017 8:03 am

Hi,

Every web domain that you add gets a config file under /home/%user%/conf/web/nginx.conf (HTTP)
and a snginx.conf (HTTPS).

%user% = the user which adds the webdomain.
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Edit nginx configs?
  • Quote

Post by youradds » Thu Apr 06, 2017 8:05 am

Awesome, thanks :)

And these are safe to edit? (i.e won't get overwritten with updates!)

Cheers

Andy
Top

rpr
Posts: 21
Joined: Mon Feb 13, 2017 1:18 pm

Re: Edit nginx configs?
  • Quote

Post by rpr » Fri Apr 07, 2017 9:12 am

They are save to edit.
They will be overwritten is you change the "template" under the website itself.
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Edit nginx configs?
  • Quote

Post by youradds » Fri Apr 07, 2017 9:51 am

Perfect, thanks :)
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Edit nginx configs?
  • Quote

Post by mehargags » Mon Apr 10, 2017 9:16 am

VestaCP Documentation at https://vestacp.com/docs/
should be your friend for the next time...!
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Edit nginx configs?
  • Quote

Post by youradds » Tue Apr 11, 2017 11:56 am

Hi,

I edited these .conf files, but they seem to get "broken" when I make changes to the domain, such as removing SSL for example.

In one case, it removed the closing } part of the server block, but left 2 opening lines.

I noticed we have this at the bottom of the config:

Code: Select all

include /home/rachel/conf/web/snginx.businessofbrands.co.uk.conf*;
What are these for? I really want to have a config file for each domain, that I can edit without fear of it breaking the whole server :/

Thanks!

Andy
Top

youradds
Posts: 130
Joined: Tue Sep 01, 2015 10:16 am

Re: Edit nginx configs?
  • Quote

Post by youradds » Wed Apr 12, 2017 7:35 am

Another one I came across, is this in the apache2 default.stpl file:

Code: Select all

php_admin_value open_basedir %docroot%:%home%/%user%/tmp
should be:

Code: Select all

php_admin_value open_basedir %sdocroot%:%home%/%user%/tmp
(I was getting a 500 IS error about the open_basedir not being right)

Cheers

Andy
Top


Post Reply
  • Print view

8 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