Could not reverse map the HTTPS VirtualHost to the original

Posted August 1, 2018 4.4k views
Let's EncryptUbuntu 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.



These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

4 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.

The perfect template. Try this. Worked for me after days of looking for solution.

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

<Directory /var/www/html/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

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

Submit an Answer