Skip to content

Instantly share code, notes, and snippets.

@wowo
Created March 22, 2011 15:43
Show Gist options
  • Save wowo/881441 to your computer and use it in GitHub Desktop.
Save wowo/881441 to your computer and use it in GitHub Desktop.
Dynamic Apache2 vhost configuration
<VirtualHost *:80>
VirtualDocumentRoot "/var/www/%1/web/"
<Directory "/var/www/%0/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment