Let's Encrypt / Overwriting locations.conf


#1

The EE tutorial for enabling Let’s Encrypt (https://easyengine.io/tutorials/nginx/lets-encrypt-with-easyengine/) says to modify the /etc/nginx/common/locations.conf file.

However, when you edit the file, the comment at the top says:

“NGINX CONFIGURATION FOR COMMON LOCATION DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)”

What is the correct way to modify this file in an update-friendly way?

Thanks!


#2

I’d rather edit /etc/nginx/sites-available/domain.com in order to move the line responsible for including conf/nginx/*.conf to ABOVE de include locations.php. Then I’d add that specific snippet to the top of /var/www/domain.com/conf/nginx/nginx.conf.

It would be great if we could edit the vhost template file: it would avoid losing edits on enabling/disabling HHVM and PageSpeed (or changing caching mechanism).