Skip to content

Instantly share code, notes, and snippets.

@jtrupiano
Created May 13, 2009 00:39
Show Gist options
  • Save jtrupiano/110811 to your computer and use it in GitHub Desktop.
Save jtrupiano/110811 to your computer and use it in GitHub Desktop.
1) Ensure apache is enabled
2) Edit /etc/apache2/users/<yourusername>.conf
NameVirtualHost *:80
<VirtualHost *:80>
ServerName something.localhost
DocumentRoot /where/your/shit/is
</VirtualHost>
3) Add this to /etc/hosts
127.0.0.1 something.localhost
4) sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment