Skip to content

Instantly share code, notes, and snippets.

@konsumer
Created April 11, 2012 18:31
Show Gist options
  • Save konsumer/2361202 to your computer and use it in GitHub Desktop.
Save konsumer/2361202 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin [email protected]
VirtualDocumentRoot "/Users/konsumer/Sites/%1/webroot/"
DocumentRoot "/Users/konsumer/Sites/%1/webroot/"
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
ErrorLog "/var/log/apache2/vhosts-error_log"
CustomLog "/var/log/apache2/vhosts-access_log" vcommon
</VirtualHost>
<Directory "/Users/konsumer/Sites">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment