I'm attempting to configure the Apache server on my small MacBooks (running Lion OS) to deal with dynamic virtual hosts. I've handled to have it "working" however i whenever I access the domain I recieve a 403 Forbidden message. The hosts file is set up to suggest to 127...1 whenever one of these simple domain names are asked for. The httpd.conf is proven below:

VirtualDocumentRoot "/web"

<Directory "/web">    
    Options All
    AllowOverride All
    Order allow,deny
    Allow from all
    ScriptAlias /web/cgi-bin/
</Directory>

UseCanonicalName Off
VirtualDocumentRoot /web/%2/%1/public_html

This is to establish to ensure that http://foo.bar/ would go to "/web/bar/foo/public_html/".

I've checked the permissions on all of the sites and files and they're ready to '777'. I've Researched for hrs and hrs and i'm still getting 403 Forbidden. If there's anybody that will help me that might be greatly appreciated.

-Mike

You first got it right, it comes down to permission. Look at your site's parent folder permission, it may be stuck in some way on a single of it's parent folder, make certain everyone site's parent folder in the root are readable by apache.