Created
June 14, 2012 17:31
-
-
Save ziz/2931635 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
NameVirtualHost *:80 | |
<Directory "/Users/YOURNAME/Sites/"> | |
Options Indexes MultiViews FollowSymLinks Includes | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
<VirtualHost *:80> | |
ServerName local.dev | |
ServerAlias *.dev | |
UseCanonicalName off | |
VirtualDocumentRoot /Users/YOURNAME/Sites/%-2.0.dev/ | |
<FilesMatch .*\.js.gz$> | |
ForceType text/javascript | |
Header set Content-Encoding: gzip | |
</FilesMatch> | |
<FilesMatch .*\.css.gz$> | |
ForceType text/css | |
Header set Content-Encoding: gzip | |
</FilesMatch> | |
</VirtualHost> | |
<VirtualHost *:80> | |
ServerName example.127.0.0.1.nip.io | |
ServerAlias *.xip.io | |
ServerAlias *.nip.io | |
UseCanonicalName off | |
VirtualDocumentRoot /Users/YOURNAME/Sites/%-7.0.dev/ | |
<FilesMatch .*\.js.gz$> | |
ForceType text/javascript | |
Header set Content-Encoding: gzip | |
</FilesMatch> | |
<FilesMatch .*\.css.gz$> | |
ForceType text/css | |
Header set Content-Encoding: gzip | |
</FilesMatch> | |
</VirtualHost> | |
<VirtualHost *:443> | |
SSLEngine on | |
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL | |
SSLCertificateFile "/private/etc/apache2/server.crt" | |
SSLCertificateKeyFile "/private/etc/apache2/server.key" | |
<FilesMatch "\.(cgi|shtml|phtml|php)$"> | |
SSLOptions +StdEnvVars | |
</FilesMatch> | |
<Directory "/Library/WebServer/CGI-Executables"> | |
SSLOptions +StdEnvVars | |
</Directory> | |
BrowserMatch ".*MSIE.*" \ | |
nokeepalive ssl-unclean-shutdown \ | |
downgrade-1.0 force-response-1.0 | |
CustomLog "/private/var/log/apache2/ssl_request_log" \ | |
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" | |
UseCanonicalName off | |
VirtualDocumentRoot /Users/YOURNAME/Sites/%-2.0.dev/ | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment