Skip to content

Instantly share code, notes, and snippets.

@abeger
Created January 9, 2013 20:45
Show Gist options
  • Save abeger/4496773 to your computer and use it in GitHub Desktop.
Save abeger/4496773 to your computer and use it in GitHub Desktop.
Add a new domain to localhost on OS X
#In /etc/hosts
127.0.0.1 testsite.localdomain
# In /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName testsite.localdomain
DocumentRoot "/path/to/testsite"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment