Skip to content

Instantly share code, notes, and snippets.

@danharper
Last active December 14, 2015 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danharper/5042282 to your computer and use it in GitHub Desktop.
Save danharper/5042282 to your computer and use it in GitHub Desktop.
NameVirtualHost *:80
# Dynamic Virtual Host
<VirtualHost *:80>
UseCanonicalName off
VirtualDocumentRoot "/Library/WebServer/Sites/%1"
<Directory "/Library/WebServer/Sites/%1" >
AllowOverride All
</Directory>
</VirtualHost>
# http://localhost
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Library/WebServer/Sites/"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment