Results 1 to 10 of 10
With an index file, all works fine. With no index, an error.
[date] [error] [client ip] Directory index forbidden by rule: /var/www/html/
DocumentRoot "/var/www/html"
<Directory />
Options Indexes FollowSymLinks
AllowOverride ...
- 03-30-2010 #1Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
Apache: Directory index forbidden by rule
With an index file, all works fine. With no index, an error.
[date] [error] [client ip] Directory index forbidden by rule: /var/www/html/
DocumentRoot "/var/www/html"
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
AccessFileName .htaccess
There's only the php.conf in the conf.d directory and it's not related.
I'm not sure why the heck I cannot get this Apache to list the files?
I have not had this problem on any other system in the past so far.
- 03-30-2010 #2Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
# cat /etc/redhat-release
CentOS release 4.8 (Final)
# httpd -v
Server version: Apache/2.0.52
Server built: Nov 12 2009 06:54:45
- 03-30-2010 #3Just Joined!
- Join Date
- Mar 2010
- Location
- Grand Rapids, MI
- Posts
- 15
What's your DirectoryIndex line look like?
- 03-31-2010 #4Just Joined!
- Join Date
- Mar 2010
- Posts
- 4
:)
You would need to edit /etc/httpd/conf.d/welcome.conf and change this :
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /error/noindex.html
</LocationMatch>
You would need to modify the line Options -Indexes, changing it to Options +Indexes
After this has been done, restart Apache. I hope this is helpful.
- 03-31-2010 #5Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
- 03-31-2010 #6Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
- 03-31-2010 #7Just Joined!
- Join Date
- Mar 2010
- Posts
- 4
.htaccess
Can you try to place a .htaccess file in /var/www/html with the following rule :
Options +Indexes
Does this fix the issue ?
- 04-01-2010 #8Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242
- 04-04-2010 #9Just Joined!
- Join Date
- Feb 2009
- Posts
- 54
The original configs you posted should show directory listing. Therefore a dumb question - are you positive that the httpd binary you are running is using the httpd.conf that you are editing?
- 04-05-2010 #10Banned
- Join Date
- Dec 2002
- Location
- Texas
- Posts
- 242


Reply With Quote
