Renewing domain cert after a rewrite has been added to the main domain URL (NGINX rewrite to folder)


So when i first issued the cert for my domain i did it for and but now i am using a permanent redirect on my NGINX block to so it is understandable that when i run the comand sudo cerbot renew the acme challenge fails, but my question is how can i renew my cert under this permanent rewrite of to

My domain is:

I ran this command: sudo certbot renew

It produced this output: Attempting to renew cert ( from /etc/letsencrypt/renewal/ produced an unexpected error: urn:acme:error:rateLimited :: There were too many requests of a given type :: Error creating new authz :: too many failed authorizations recently: see Skipping.

My web server is (include version): NGINX 1.10.3

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


Redirects aren’t usually supposed to be a problem.

Can you post the contents of /etc/letsencrypt/renewal/ and your Nginx server blocks?

Is that a typo?


I don’t think that’s an typo. But the OP should consider update the system (since 17.04 reached EOL in Jan.2018)


Hi @lmuzquiz

looks that there is another reason why your renew fails: The “missing-slash-reason”:

Your http redirects to https, this isn’t a problem. But in your redirect there is a missing /.

So is redirected to the non existing domain

Add a / in your redirect rule after your %SERVERNAME


If you properly exclude, or handle, the challenge requests, then forwarding should not be a problem.

closed #6

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