Lets encrypt retains old ip address upon renewal

My web server is (include version): Nginx

The operating system my web server runs on is (include version): Centos

I recently changed the server IP address. Lets encrypt upon renewal rewrites the nginx conf file with old IP address. I have to edit the file and replace in order for the magento site to go live. From where is renewal process picking the old ip?

Do you mean an IP address in a listen line? Like:


As far as I remember, Certbot just copies it from the port 80 version of the nginx virtualhost it’s securing. You might want to check how many times it appears in your total nginx configuration, to see whether it might be hiding somewhere out of sight:

e.g. If the unwanted address was

nginx -T | grep -F

Yes that is correct. In the listen line. I have checked the entire conf file multiple times. I don’t see traces of old IP anywhere. Infact I ran grep -rlw on the entire system and could’t find the IP.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.