Skip to content

Instantly share code, notes, and snippets.

@tjboudreaux
Created August 3, 2011 15:43
Show Gist options
  • Save tjboudreaux/1122944 to your computer and use it in GitHub Desktop.
Save tjboudreaux/1122944 to your computer and use it in GitHub Desktop.
Virtual Document Roots For Development Environment
<VirtualHost *:80>
UseCanonicalName off
ServerAlias branch.*.local
VirtualDocumentRoot /Users/tjboudreaux/Sites/%3.0.%4.0/branches/%2.0
<Directory />
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
<VirtualHost *:80>
UseCanonicalName off
ServerAlias trunk.*.local
VirtualDocumentRoot /Users/tjboudreaux/Sites/%2.0.%3.0/trunk
<Directory />
Order allow,deny
Allow from all
AllowOverride All
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment