Results 1 to 3 of 3
Nov 16, 2013, 11:37 #1
- Join Date
- Oct 2009
- London, UK
- 1 Post(s)
- 0 Thread(s)
Apache Virtual Hosts on mac os x 10.9
So I'm just setting up my new MacBook with a LAMP stack. I've set my home directory to ~/Sites.
Now I want to set up virtual hosts so I can point urls to different document roots.
So lets say I have a folder in my Sites directory named MySite.
In /etc/hosts I add the following line:
<VirtualHost *:80> ServerName mysite.dev DocumentRoot /Users/username/Sites/MySite </VirtualHost>
Not sure what I've done wrong... I've restarted apache, so its not that. Any ideas?