Created
September 18, 2013 08:24
-
-
Save tunght13488/6606201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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