Skip to content

Instantly share code, notes, and snippets.

@remvee
Created October 7, 2019 08:16
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 remvee/89fdc552a8dfd2f54e401cbf93706674 to your computer and use it in GitHub Desktop.
Save remvee/89fdc552a8dfd2f54e401cbf93706674 to your computer and use it in GitHub Desktop.
Apache proxy HTTPS to HTTPS
<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