Edit nginx configs?
Edit nginx configs?
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
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?
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.
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?
Awesome, thanks :)
And these are safe to edit? (i.e won't get overwritten with updates!)
Cheers
Andy
And these are safe to edit? (i.e won't get overwritten with updates!)
Cheers
Andy
Re: Edit nginx configs?
They are save to edit.
They will be overwritten is you change the "template" under the website itself.
They will be overwritten is you change the "template" under the website itself.
Re: Edit nginx configs?
Perfect, thanks :)
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Edit nginx configs?
VestaCP Documentation at https://vestacp.com/docs/
should be your friend for the next time...!
should be your friend for the next time...!
Re: Edit nginx configs?
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:
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
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*;
Thanks!
Andy
Re: Edit nginx configs?
Another one I came across, is this in the apache2 default.stpl file:
should be:
(I was getting a 500 IS error about the open_basedir not being right)
Cheers
Andy
Code: Select all
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
Code: Select all
php_admin_value open_basedir %sdocroot%:%home%/%user%/tmp
Cheers
Andy