Could not reverse map the HTTPS VirtualHost to the original

August 1, 2018 723 views
Let's Encrypt Ubuntu 16.04


I'm trying to set up multiple domains on a single droplet. I have followed the various articles available on DO on setting up multiple vhosts and how to install a lets encrypt certificate. The certificate for the first domain installed fine, but when I try and install a certificate for the second domain, I get the following message;

Could not reverse map the HTTPS VirtualHost to the original


  • Unable to install the certificate
  • Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/ Your key file has been saved at: /etc/letsencrypt/live/ Your cert will expire on 2018-10-28. To obtain a new or tweaked version of this certificate in the future, simply run certbot again with the "certonly" option. To non-interactively renew all of your certificates, run "certbot renew"
  • Some rewrite rules copied from /etc/apache2/sites-enabled/ were disabled in the vhost for your HTTPS site located at /etc/apache2/sites-available/ because they have the potential to create redirection loops.

I cannot find much information on the web and am looking for someone to point out where I've gone wrong.



3 Answers

Did you have any rewrite rules on your second domain before you created the ssl key?
Maybe some redirect rules that specifically referred to http:// ?

Sounds like letsencrypt commented out some redirect rules on your https site, I think those would be the first one to look at.

I haven't uploaded anything to the second site yet except an index.html file to allow me to see when it's working.

Have another answer? Share your knowledge.