Skip to content

Instantly share code, notes, and snippets.

@realsby
Last active April 23, 2018 17:42
Show Gist options
  • Save realsby/75575ea0a6bad5eae1ee831c952bed5a to your computer and use it in GitHub Desktop.
Save realsby/75575ea0a6bad5eae1ee831c952bed5a to your computer and use it in GitHub Desktop.
Apache2 https to http
<VirtualHost *:443>
ServerAdmin [email protected]
ServerName maindomain.com
ServerAlias otherdomain.com
SSLEngine on
SSLCertificateFile /var/Certs/star-bundle.cert
SSLCertificateKeyFile /var/Certs/cert.key
SSLProtocol -ALL +SSLv3 +TLSv1
SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP
RewriteEngine On
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment