Lets Encrypt Apache Renew Fails When Using ProxyPass

by | Jul 17, 2017 | IT Tips | 0 comments

These Apache Proxy rules will send all traffic to the backend host

1
2
ProxyPass / http://10.80.19.5/
ProxyPassReverse / http://10.80.19.5/

Which causes letencrypt to fail when trying to renew the SSL Cert on the Proxy Host because the request for http://yoursslcerthost.example.com/.well-known/  gets incorrectly passed to the backend host

So to make it work you need to tell mod_proxy to ignore that path as follows. Then you certbot-auto renew --no-self-upgrade command will complete successfully

1
2
3
ProxyPass /.well-known/ !
ProxyPass / http://10.80.19.5/
ProxyPassReverse / http://10.80.19.5/

The error you will see when running certbot-auto manually may look like

1
2
3
4
5
6
7
IMPORTANT NOTES:
- The following errors were reported by the server:
 
Domain: yoursslcerthost.example.com
Type: unauthorized
Detail: Invalid response from

 

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.