Skip to content

Instantly share code, notes, and snippets.

@lenybernard
Last active August 22, 2019 10:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lenybernard/29596be96d7d8ad4a684e3dcd0135094 to your computer and use it in GitHub Desktop.
Save lenybernard/29596be96d7d8ad4a684e3dcd0135094 to your computer and use it in GitHub Desktop.
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName mywebsite.com
ProxyPreserveHost On
+ SSLProxyEngine On
+ SSLProxyVerify none
+ SSLProxyCheckPeerCN off
+ SSLProxyCheckPeerName off
+ SSLProxyCheckPeerExpire off
- ProxyPass / http://127.0.0.1:7051/
+ ProxyPass / https://127.0.0.1:7051/
- ProxyPassReverse / http://127.0.0.1:7051/
+ ProxyPassReverse / https://127.0.0.1:7051/
ProxyPassReverseCookieDomain 127.0.0.1 mywebsite.com
SSLCertificateFile /etc/letsencrypt/live/mywebsite.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mywebsite.com/privkey.pem
+ SSLCertificateChainFile /etc/letsencrypt/live/mywebsite.com/chain.pem
Include /etc/letsencrypt/options-ssl-apache.conf
CustomLog "/var/log/apache2/mywebsite.com_log" "%h %l %u %t \"%r\" %>s %b"
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment