synnefo-ssl 765 Bytes
Newer Older
Dimitris Aragiorgis's avatar
Dimitris Aragiorgis committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
  ServerName %HOST%

  Alias /static "/usr/share/synnefo/static"

#  SetEnv no-gzip
#  SetEnv dont-vary

  AllowEncodedSlashes On

  RequestHeader set X-Forwarded-Protocol "https"

  <Proxy * >
    Order allow,deny
    Allow from all
  </Proxy>

  SetEnv                proxy-sendchunked
  SSLProxyEngine        off
  ProxyErrorOverride    off

  ProxyPass        /static !
  ProxyPass        / http://localhost:8080/ retry=0
  ProxyPassReverse / http://localhost:8080/

#  RewriteEngine On
#  RewriteRule ^/login(.*) /im/login/redirect\$1 [PT,NE]

  SSLEngine on
  SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
  SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
</VirtualHost>
</IfModule>