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

snginx.conf gets overwritten

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
cyadron
Posts: 6
Joined: Sun Nov 05, 2017 2:56 pm

snginx.conf gets overwritten
  • Quote

Post by cyadron » Tue Nov 07, 2017 7:41 am

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:

Code: Select all

include     /home/user/conf/web/snginx.site.com.conf*;
to

Code: Select all

include     /home/user/conf/web/*nginx.site.com.conf*;
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.
Top

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

Re: snginx.conf gets overwritten
  • Quote

Post by noogen » Tue Nov 07, 2017 3:49 pm

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

cyadron
Posts: 6
Joined: Sun Nov 05, 2017 2:56 pm

Re: snginx.conf gets overwritten
  • Quote

Post by cyadron » Wed Nov 08, 2017 12:25 pm

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.
Thank you a lot for your help.
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.
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