Skip to content

Instantly share code, notes, and snippets.

@sarahcssiqueira
Created July 12, 2023 22:40
Show Gist options
  • Save sarahcssiqueira/a7b033b1801ec76b23fae37c212e352d to your computer and use it in GitHub Desktop.
Save sarahcssiqueira/a7b033b1801ec76b23fae37c212e352d to your computer and use it in GitHub Desktop.
Fix error "Could not reverse map the HTTPS VirtualHost to the original"
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName domain-name.com
ServerAlias www.domain-name.com
DocumentRoot /var/www/domain-name
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/domain-name.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/domain-name.com/privkey.pem
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment