snginx.conf gets overwritten
snginx.conf gets overwritten
Hello,
I am having a problem with the snginx.conf files.
I had no problems until now. But when I modified a line in the snginx.conf, the files are now changed each night and some lines are added, others removed, etc, invalidating the config file.
The line I modified was:
to
I made this modification so that the config file for let's encrypt also gets included.
I am running CentOS 7 with Vesta 0.9.8.
Thanks for your help.
I am having a problem with the snginx.conf files.
I had no problems until now. But when I modified a line in the snginx.conf, the files are now changed each night and some lines are added, others removed, etc, invalidating the config file.
The line I modified was:
Code: Select all
include /home/user/conf/web/snginx.site.com.conf*;
Code: Select all
include /home/user/conf/web/*nginx.site.com.conf*;
I am running CentOS 7 with Vesta 0.9.8.
Thanks for your help.
Re: snginx.conf gets overwritten
DO NOT modify that include, see explaination in proposal #1 below. If anything, you want to add additional include.
Ran into the exact same situation, you have two options:
1. Vesta create the letsencrypt file as 'snginx.site.com.conf_letsencrypt' so that's why it reference the include file as: snginx.site.com.conf*
Take advantage of this and create your conf file like so: snginx.site.com.conf_yourconf
2. modify the actual template file *.{tpl,stpl) under /usr/local/vesta/data/templates/web/nginx and add your conf file, example:
Line 9, I added: https://github.com/niiknow/vestacp/blob ... om.stpl#L9
Line 10 is the original include that we're talking about.
Ran into the exact same situation, you have two options:
1. Vesta create the letsencrypt file as 'snginx.site.com.conf_letsencrypt' so that's why it reference the include file as: snginx.site.com.conf*
Take advantage of this and create your conf file like so: snginx.site.com.conf_yourconf
2. modify the actual template file *.{tpl,stpl) under /usr/local/vesta/data/templates/web/nginx and add your conf file, example:
Line 9, I added: https://github.com/niiknow/vestacp/blob ... om.stpl#L9
Line 10 is the original include that we're talking about.
Re: snginx.conf gets overwritten
Thank you a lot for your help.noogen wrote:DO NOT modify that include, see explaination in proposal #1 below. If anything, you want to add additional include.
Ran into the exact same situation, you have two options:
1. Vesta create the letsencrypt file as 'snginx.site.com.conf_letsencrypt' so that's why it reference the include file as: snginx.site.com.conf*
Take advantage of this and create your conf file like so: snginx.site.com.conf_yourconf
2. modify the actual template file *.{tpl,stpl) under /usr/local/vesta/data/templates/web/nginx and add your conf file, example:
Line 9, I added: https://github.com/niiknow/vestacp/blob ... om.stpl#L9
Line 10 is the original include that we're talking about.
In my case, Vesta created the letsencrypt conf files as nginx.site.com.conf_letsencrypt, that is why I modified it in the first place.