Skip to content

Instantly share code, notes, and snippets.

@mattgrill
Created June 3, 2014 21:21
Show Gist options
  • Save mattgrill/a0a05b0fb29a90c75ae7 to your computer and use it in GitHub Desktop.
Save mattgrill/a0a05b0fb29a90c75ae7 to your computer and use it in GitHub Desktop.
Listen 80
# Use name-based virtual hosting.
NameVirtualHost *:80
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-Agent}i\"" dynamic_vhosts
CustomLog /var/log/apache2/access_log dynamic_vhosts
<VirtualHost *:80>
ServerName localhost
VirtualDocumentRoot /Users/mgrill/Sites/%0
<Directory "/Users/mgrill/Sites">
Options Indexes FollowSymLinks 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