Apache: 403 Forbidden

apache-2.2forbiddenremote-access

I'm using the wamp server 2 for a web application. I can access files from localhost but I have it set up with access from outside via ip address which worked before I reinstalled wamp and now I'm getting a forbidden message.

Forbidden

You don't have permission to access /ClientPortal/ on this server.

Is this an apache setting I have forgottent to change?

Thanks for any help on this,

Jonesy

Best Answer

There's a couple of reasons for this:

If you don't think you have an explicit exclusion such as

Order Deny,Allow Deny from All Allow from 192.168.1.0/24

It could be a simple case of missing directory index:

DirectoryIndex index.html index.htm

If you have an index.php and it's missing from the above line and DirectoryListing is denied, you'll get 403 Forbidden.

DirectoryIndex index.php index.html index.htm

By adding index.php you could fix your problem.

let us know.

Andrew