Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-25-2006, 10:59 AM   #1
Registered: Oct 2003
Location: MN
Distribution: CentOS, Fedora
Posts: 182

Rep: Reputation: 30
Apache - Directory index forbidden

Hey all,

Having a weird issue with an almost default install of Apache 2.0.53 on Fedora 3 (and 4). We use Apache strictly as an application server, and typically don't need the web browsing features. However, we're setting up some scripts to check to make sure that Apache is running, and in so doing it requests a response from the server every 5-10 seconds or so. The problem is that Apache is always kicking back an error, even though the page comes up. The error is as follows:

Directory index forbidden by rule: /var/www/html/
This is easy to duplicate in testing as well. Install Apache with the default options, and bring up the page (using it's IP) in a browser. Page loads up fine, but this error is always added to the error log.

I've been searching around, and the common response is that the "Options Indexes" needs to be added. Well, using the default Apache config, this is how the /var/www/html directory is set up:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
As far as I can tell, that should allow the directory indexing that it's complaining about in the logs. This folder is also set up as the DocumentRoot in the config file. I've checked the permissions on the folder itself, and I've changed the permissions to 777, owner and group to apache, etc. Nothing gets me by this error. As a result, I have log files that grow to huge sizes as they fill up with that same error.

So, I'm looking for a bit of help with this. Again, nearly default config on Fedora, with only the cgi-bin directories changed. What do I need to do to tell Apache to allow directory indexing?

Old 01-26-2006, 07:49 AM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 168Reputation: 168
Your syntax looks the same as mine and I'm not having that problem. What are your permissions on /var and /var/www? Whichever user the web server is running as should have browse permissions for them (+x).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
Apache directory index layout lupus9537 Linux - Software 1 04-26-2004 03:23 PM
Virtual Hosts/Directory Index Forbidden by Rule Alan Powell Linux - Newbie 4 04-26-2004 06:35 AM
apache directory index spank Linux - Newbie 1 12-10-2003 11:47 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration