How to setup virtualhost in Mac OS X 10.9.1 Maverick

In case you are not using MAMP, you might need this tip whether if you want to avoid the killer "Forbidden" message when you try to access to document root :)

1. Go to

sudo nano /etc/apache2/httpd.conf

and uncomment line number 478

Include /private/etc/apache2/extra/httpd-vhosts.conf

2. Go to


y put something like