PDA

View Full Version : Apache 403 Forbidden Error


naycoder
12-22-2005, 08:12 PM
Hello All--

I know there is a similar post from and ealier time but I think I have a different issue.

Whenever I try to access a directory by itself (i.e. http://www.mysite.com/photos/) I get a 403 forbidden error. But, if I actually access the page (http://www.mysite.com/index.php) it will go through fine. It is an obvious hinderance to expect that my users and search engines will know the exact names of each of my pages.

The error log shows as follows:

Directory index forbidden by rule: /srv/www/htdocs/


Also, my permissions are all set right I am pretty sure (755) with wwwrun as the user and www as the group.
httpd.conf is configured correctly I believe also.

I have searched and searched for an answer but nothing I have found works.
Any help would be great

--
Nay

Gamini
12-24-2005, 04:54 AM
It looks like directory listing has been somehow disabled.

I looked around httpd.conf, it seems that if for that particular directory the Options Indexes isn't enabled, it will deny access.

It should look something like this.


<Directory "/home/gamini/inetpub">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs-2.1/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks


Removing Indexes gives the error.