Skip to content

Instantly share code, notes, and snippets.

@johnf
Created March 10, 2011 00:34
Show Gist options
  • Save johnf/863324 to your computer and use it in GitHub Desktop.
Save johnf/863324 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
ServerName mail.inodes.org
RewriteEngine On
RewriteRule ^/(.*) https://mail.inodes.org/
</VirtualHost>
<VirtualHost 192.168.223.31:443>
ServerName mail.inodes.org
DocumentRoot /srv/www/mail.inodes.org/apacheroot
<IfModule mod_ssl.c>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/mail_inodes_org.crt
SSLCACertificateFile /etc/ssl/certs/mail_inodes_org.ca-bundle
SSLCertificateKeyFile /etc/ssl/private/mail_inodes_org.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
</IfModule>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment