Created
November 17, 2010 11:58
-
-
Save bluefuton/703313 to your computer and use it in GitHub Desktop.
Automagic virtual hosts with mod_vhost_alias
This file contains 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> | |
VirtualDocumentRoot "/Users/my.name/sandbox/%1" | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pop this into your extra/httpd-vhosts.conf file. You can then use whatever-you-like.local which will automagically use /Users/my.name/sandbox/whatever-you-like as the webroot. You'll still need to add whatever-you-like.local to your hosts file.