-
-
Save derek-schaefer/ed7c58458c52c7be9fa179acc940c351 to your computer and use it in GitHub Desktop.
Opternative branded reverse proxy hostname example for Apache
This file contains 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
Listen 80 | |
Listen 443 | |
<VirtualHost *:80> | |
ServerName localhost; | |
Redirect permanent / https://localhost/ | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName localhost; | |
SSLEngine on | |
SSLCertificateFile ssl.crt | |
SSLCertificateKeyFile ssl.key | |
SSLCipherSuite HIGH:!aNULL:!MD5 | |
ProxyRequests off | |
SSLProxyEngine on | |
<Location /> | |
ProxyPass https://staging.opternative.com/ | |
ProxyPassReverse https://staging.opternative.com/ | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment