Skip to content

Instantly share code, notes, and snippets.

@mattgrill
Created December 1, 2014 05:52
Show Gist options
  • Save mattgrill/37e16711a75df5202ba8 to your computer and use it in GitHub Desktop.
Save mattgrill/37e16711a75df5202ba8 to your computer and use it in GitHub Desktop.
httpd-vhosts.conf
Listen 80
# Use name-based virtual hosting.
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/{USERNAME}/Sites/%0
<Directory "/Users/{USERNAME}/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