I am currently facing a strange issue regarding how let’s encrypt and nginx work together.
I have successfully installed the certificates on my website and everything works well at this moment.
However I decided to update some changes to my nginx.conf file and on my surprise, when I restarted nginx the changes were not applied. So I tried to look if there was another nginx config file being used and it seems that let’s encrypt keeps a backups/ folder with the old nginx.conf contents I had before making those changes. Looks like my nginx is serving that file instead of the one he should be (/usr/local/etc/nginx/nginx.conf => returned from the command “nginx -t”)
So the question is: Is there a way to remove the cache of let’s encrypt ?