Created
June 26, 2013 15:43
-
-
Save wpscholar/5868529 to your computer and use it in GitHub Desktop.
Simplify local development with dynamic VirtualHosts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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