Setting up VirtualHost on OSX 10.7 (Lion)

view full story

http://serverfault.com – I've finally made the switch to Lion but I'm having trouble setting up an Apache VirtualHost. This is what I've done so far and I'm not sure why it's not working. 1) In /etc/apache2/httpd.conf I uncommented this this line: Include /private/etc/apache2/extra/httpd-vhosts.conf 2) In the httpd-vhosts.conf I put this: NameVirtualHost *:80 <VirtualHost *:80> ServerName localhost DocumentRoot "/Library/WebServer/Documents" </VirtualHost> <VirtualHost *:80> ServerName work.local DocumentRoot "/Users/me/Work" <Directory /Users/me/Work> Ord (HowTos)