Page 1 of 1
Edit nginx configs?
Posted: Thu Apr 06, 2017 7:11 am
by youradds
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
Re: Edit nginx configs?
Posted: Thu Apr 06, 2017 8:03 am
by rpr
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.
Re: Edit nginx configs?
Posted: Thu Apr 06, 2017 8:05 am
by youradds
Awesome, thanks :)
And these are safe to edit? (i.e won't get overwritten with updates!)
Cheers
Andy
Re: Edit nginx configs?
Posted: Fri Apr 07, 2017 9:12 am
by rpr
They are save to edit.
They will be overwritten is you change the "template" under the website itself.
Re: Edit nginx configs?
Posted: Fri Apr 07, 2017 9:51 am
by youradds
Perfect, thanks :)
Re: Edit nginx configs?
Posted: Mon Apr 10, 2017 9:16 am
by mehargags
VestaCP Documentation at
https://vestacp.com/docs/
should be your friend for the next time...!
Re: Edit nginx configs?
Posted: Tue Apr 11, 2017 11:56 am
by youradds
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
Re: Edit nginx configs?
Posted: Wed Apr 12, 2017 7:35 am
by youradds
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