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 :'(

Like what you read? Give leonardo ribeiro a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.