Skip to content

Instantly share code, notes, and snippets.

@wpscholar
Created June 26, 2013 15:43
Show Gist options
  • Save wpscholar/5868529 to your computer and use it in GitHub Desktop.
Save wpscholar/5868529 to your computer and use it in GitHub Desktop.
Simplify local development with dynamic VirtualHosts
NameVirtualHost *:80
<VirtualHost *:80>
ServerName dev
ServerAlias *.dev
VirtualDocumentRoot "/Users/home/Sites/%-2/public_html"
<Directory "/Users/home/Sites/">
Options Indexes FollowSymLinks
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