Skip to content

Instantly share code, notes, and snippets.

@markjames
Created September 21, 2010 09:43
Show Gist options
  • Save markjames/589472 to your computer and use it in GitHub Desktop.
Save markjames/589472 to your computer and use it in GitHub Desktop.
In /etc/hosts:
127.0.0.1 test.site
In your httpd.conf:
NameVirtualHost *
<VirtualHost *>
ServerName test.site
ServerAlias test.site *.test.site
DocumentRoot /Users/yourusername/Sites/test.site/httpdocs
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment