Last active
August 22, 2019 10:05
-
-
Save lenybernard/29596be96d7d8ad4a684e3dcd0135094 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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