Skip to content

Instantly share code, notes, and snippets.

@tunght13488
Created September 18, 2013 08:24
Show Gist options
  • Save tunght13488/6606201 to your computer and use it in GitHub Desktop.
Save tunght13488/6606201 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot "/path/to/source"
ServerName hostname.local
ServerAlias hostname.dev hostname.loc hostname.*.xip.io
ErrorLog "/var/log/hostname-error_log"
CustomLog "/var/log/hostname-access_log" common
<Directory "/path/to/source">
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "/path/to/source"
ServerName hostname.local
ServerAlias hostname.dev hostname.loc hostname.*.xip.io
SSLEngine On
SSLCertificateFile /path/tokey/crt/hostname.crt
SSLCertificateKeyFile /path/tokey/key/hostname.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
ErrorLog "/var/log/hostname-error_log"
CustomLog "/var/log/hostname-access_log" "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<Directory "/path/to/source">
Options Indexes FollowSymLinks ExecCGI MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment