Error 403 on a localhost site on Mac

I was having trouble with my VirtualHosts here. Some sites worked but some did not.

It was down to the sites that use some sort of framework, and by adding the following code into the VirtualHost section for the misbehaving site:

<Directory /path/to/site/folder>
    Options +Indexes +FollowSymLinks +ExecCGI
    DirectoryIndex index.php
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

I’m guessing it was preventing the mod_rewrite to do the re-writing.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.