Skip to content

Instantly share code, notes, and snippets.

@tidalvirus
Last active August 29, 2015 14:21
Show Gist options
  • Save tidalvirus/3c104aff55c484c1bca4 to your computer and use it in GitHub Desktop.
Save tidalvirus/3c104aff55c484c1bca4 to your computer and use it in GitHub Desktop.
default https vhost
<IfModule mod_ssl.c>
NameVirtualHost *:443
<VirtualHost *:443>
ServerName default.mindless.co.uk <- might or might not need this line
SSLEngine On
SSLCertificateFile /etc/ssl/certs/wildcard.mindless.co.uk.cert
SSLCertificateKeyFile /etc/ssl/private/wildcard.mindless.co.uk.key
ServerAdmin webmaster@localhost
ErrorLog "|/usr/bin/cronolog -l /var/www/default-ssl/log/error.log /var/www/default-ssl/log/error/error.%Y.%m.log"
CustomLog "|/usr/bin/cronolog -l /var/www/default-ssl/log/access.log /var/www/default-ssl/log/access/access.%Y.%m.log" combined
DocumentRoot /var/www/default-ssl/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/default-ssl/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
LogLevel warn
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment