In order to prevent apache from showing the directory listing, you need to disable indexes
. Also, it's best to disable MultiViews as that will enable content-negotiating, which may produce unwanted side-effects
Change the options to;
Options -Indexes FollowSymLinks
Then, check that the .htaccess
file is present inside your webroot (C:/Sites/Sitename
), as that file is used to enable mod_rewrite
Additional pointers/hints
First of all, make sure that the DocumentRoot
is pointing to the right directory of your application;
The standard directory structure of CakePHP looks like this;
app
/Config
/Controllers
/Views
......
/webroot
lib
/Cale
plugins
The DocumentRoot
should point to your `app/webroot' directory, which contains all 'public' files.
Change the paths/directories in your virtual host to that directory and restart Apache.
If you're still getting a 403 error, change the URL you're visiting in your browser to this;
http://mywebsite.com/index.php
If this does work, check if the .htaccess
file is present in that directory and mod_rewrite
is installed in your Apache.