Page 1 of 1

NGINX config changes rewriting

Posted: Wed Aug 22, 2018 10:16 am
by lionweb
Hello,

I have problems with the nginx configuration files located in /home/USER/conf/web/domain.ltd.nginx.ssl.conf. I needed to add several rows to these files for all my domains and it works well for a few weeks. But sometimes it happens that these changes will be removed by themselves. And it makes my site not working, so I add them again and usually it works for about 3 weeks.
Why is it happening and how can I prevent it?

Re: NGINX config changes rewriting

Posted: Wed Aug 22, 2018 10:29 am
by ScIT
You should not edit this files, they will be overwritten by vestacp. If you need to have some special settings, create a own template in /usr/local/vesta/data/templates/web.