martinrusev
3/20/2015 - 2:15 PM

Amon - Apache HTTPS Config

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>