Skip to content

Instantly share code, notes, and snippets.

@joshuaadrian
Created October 23, 2013 18:18
Show Gist options
  • Save joshuaadrian/7123800 to your computer and use it in GitHub Desktop.
Save joshuaadrian/7123800 to your computer and use it in GitHub Desktop.
sudo vim /etc/apache2/extra/httpd-vhosts.conf
<VirtualHost *:80>
ServerName test.local
DocumentRoot "/Users/name/Sites/site"
ErrorLog "/private/var/log/apache2/test.local-error_log"
CustomLog "/private/var/log/apache2/test.local-access_log" common
ServerAdmin [email protected]
<Directory "/Users/neilg/Sites/apple">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
sudo vim /etc/hosts
127.0.0.1 test.local
sudo apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment