diff options
-rw-r--r-- | config/httpd-ssl-vhost.conf-example | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/httpd-ssl-vhost.conf-example b/config/httpd-ssl-vhost.conf-example new file mode 100644 index 000000000..820a94165 --- /dev/null +++ b/config/httpd-ssl-vhost.conf-example @@ -0,0 +1,24 @@ +# VirtualHost for HTTPS requess +<VirtualHost *:443> + ServerName www.example.com + + ErrorLog /var/log/apache2/alaveteli_error.log + CustomLog /var/log/apache2/alaveteli_access.log combined + + ProxyRequests Off + ProxyPreserveHost On + ProxyPass / http://localhost:80/ + ProxyPassReverse / http://localhost:80/ + RequestHeader set X-Forwarded-Proto 'https' + + SSLEngine on + SSLProtocol all -SSLv2 + SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM + + SSLCertificateFile /etc/apache2/ssl/ssl.crt + SSLCertificateKeyFile /etc/apache2/ssl/ssl.key + SSLCertificateChainFile /etc/apache2/ssl/sub.class2.server.ca.pem + SSLCACertificateFile /etc/apache2/ssl/ca.pem + + SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown +</VirtualHost> |