Created
October 7, 2019 08:16
-
-
Save remvee/89fdc552a8dfd2f54e401cbf93706674 to your computer and use it in GitHub Desktop.
Apache proxy HTTPS to HTTPS
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
<VirtualHost *:80> | |
ServerName app.example.com | |
RewriteEngine On | |
RewriteRule ^(.*)$ https://app.example.com$1 [L,R=301] | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName app.example.com | |
SSLEngine on | |
SSLProxyEngine on | |
SSLCompression off | |
SSLProtocol All -SSLv2 -SSLv3 -TLSv1 | |
SSLCipherSuite AES256+EECDH:AES256+EDH | |
SSLCertificateFile /etc/apache2/ssl/STAR_example_com.crt | |
SSLCertificateKeyFile /etc/apache2/ssl/STAR_example_com.key | |
SSLCertificateChainFile /etc/apache2/ssl/COMODORSADomainValidationSecureServerCA.crt | |
ProxyRequests Off | |
ProxyPreserveHost On | |
ProxyPass / https://123.456.789.123/ retry=0 | |
ProxyPassReverse / https://123.456.789.123/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment