I have a Ubuntu 12.04 server running in a VirtualBox environment. I setup a shared folder with my Windows system and this worked fine until I updated PHP to 5.5.12 from 5.3.x. I used a new source for php as it didn't seem that apt-get was letting me upgrade past 5.3.x. In the process it upgraded apache2 also. One difference that I had overlooked initially was that vhost configuration files were no longer default or mysite. The default is now 000-default.conf. And apache2.conf is only setup to load sites with configuration files that end in .conf.
The problem is not that I am getting any forbidden errors but instead apache ignores any directives telling it to use a document root elsewhere than the /var/www location. My shared directory with VirtualBox is /media/sf_sandbox/ - that's the Ubuntu directory. I disabled the default site 000-default.conf and enabled two others. Now, sandbox.dev uses files in the var/www directory and not the shared directory. It ignores the directives in the sandbox.conf file.
I read somewhere that apache by default will only serve files from the /var/www directory and that I might have to white list other directories. It didn't say how to do that. The apache2.conf file does have directives to load *.conf files from the sites-available directory. Unfortunately, it just ignores the directives telling it where the document root is on my sites. This happened after upgrading PHP from 5.3.x to 5.5.12, which also upgraded apache2.
How can I white-list other directories and tell apache to serve files from the location specified?