Skip to content

Instantly share code, notes, and snippets.

@derek-schaefer
Created November 6, 2017 15:14
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 derek-schaefer/ed7c58458c52c7be9fa179acc940c351 to your computer and use it in GitHub Desktop.
Save derek-schaefer/ed7c58458c52c7be9fa179acc940c351 to your computer and use it in GitHub Desktop.
Opternative branded reverse proxy hostname example for Apache
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