Skip to content

Instantly share code, notes, and snippets.

@martinrusev
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save martinrusev/53ce3688db52486e41f4 to your computer and use it in GitHub Desktop.

Select an option

Save martinrusev/53ce3688db52486e41f4 to your computer and use it in GitHub Desktop.
Amon - Apache HTTPS Config
<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