nginx.conf gets overwitten by vestacp
nginx.conf gets overwitten by vestacp
I am adding an ssl redirect in nginx.conf which works but if I add another alias to that domain via vestacp then the nginx.conf is overwritten.
Sample config
In the above code I have added an https redirect
If I then make a change in vestacp for this domain say add another alias joe.ageektech.com, the nginx.conf file gets re-written.
Where do I make custom nginx.conf changes that will not be overwritten.
Sample config
Code: Select all
server {
listen 162.243.133.102:80;
server_name ageektech.com dan.ageektech.com;
error_log /var/log/apache2/domains/ageektech.com.error.log error;
return 301 https://$server_name$request_uri;
Code: Select all
return 301 https://$server_name$request_uri;
Where do I make custom nginx.conf changes that will not be overwritten.
Re: nginx.conf gets overwitten by vestacp
You have two options here:
- make you own template
or
- use force-ssl template https://vestacp.com/docs/#how-to-force-https
- make you own template
or
- use force-ssl template https://vestacp.com/docs/#how-to-force-https