Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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