NGINX config changes rewriting Topic is solved
NGINX config changes rewriting
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?
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
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.