How to set up Virtual Hosts on Mac OS X El Capitan 10.11 El Capitan & Mac OS X 10.10 Yosemite
Danilo Stern-Sapad

For those who are getting 403 error in the virtual host (I'm getting it when I try to setup a virtual host outside the ~/Sites folder…) you can just add Directory tags inside your virtualhost config:

<VirtualHost *:80>
 DocumentRoot “/Users/awesomeuser/Documents/Workspace/project/public”
 ServerName local.magento
 ErrorLog “/Users/awesomeuser/Documents/Workspace/project/apache-error.log"
 CustomLog “/Users/awesomeuser/Documents/Workspace/project/apache-access.log"
 <Directory “/Users/awesomeuser/Documents/Workspace/project/public”>
 AllowOverride All
 Options Indexes MultiViews FollowSymLinks
 Require all granted

Running on OSX El Capitan here — sorry no idea in how to add code block here :'(

Show your support

Clapping shows how much you appreciated leonardo ribeiro’s story.