Last active
August 29, 2015 14:17
-
-
Save martinrusev/53ce3688db52486e41f4 to your computer and use it in GitHub Desktop.
Amon - Apache HTTPS Config
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 amon.cx | |
| RewriteEngine on | |
| RewriteCond %{SERVER_PORT} !=443 | |
| RewriteCond %{REQUEST_URI} !^/ | |
| RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [NC,R=301,L] | |
| ProxyPass / http://127.0.0.1:8000/ | |
| ProxyPassReverse / http://127.0.0.1:8000/ | |
| </VirtualHost> | |
| Listen *:443 | |
| <VirtualHost *:443> | |
| ServerName amon.cx | |
| SSLEngine On | |
| SSLCACertificateFile /etc/apache2/ssl/amon-bundle.crt | |
| SSLCertificateFile /etc/apache2/ssl/amon.crt | |
| SSLCertificateKeyFile /etc/apache2/ssl/amon.key | |
| SSLCipherSuite ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP | |
| ProxyPass / http://127.0.0.1:8000/ | |
| ProxyPassReverse / http://127.0.0.1:8000/ | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment