Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides
https://forum.ivorde.com/

CentOS Apache 2.2.3 Directory index forbidden by Options directive
https://forum.ivorde.com/centos-apache-2-2-3-directory-index-forbidden-by-options-directive-t111.html
Page 1 of 1

Author:  mandrei99 [ Thu Jul 29, 2010 11:34 am ]
Post subject:  CentOS Apache 2.2.3 Directory index forbidden by Options directive

After installing Apache 2.2.3 on Centos 5.5, adding virtual domains with Directory indexes will not be possible and the apache welcome page will be displayed if there isn't an index file in the root directory of the vhost.

Quote:
Directory index forbidden by Options directive


This behavior can be fixed by editing /etc/httpd/conf.d/welcome.conf and change it from:
Code:
<LocationMatch "^/+$">
    Options -Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>


to
Code:
<LocationMatch "^/+$">
    Options Indexes
    ErrorDocument 403 /error/noindex.html
</LocationMatch>


Now, vhosts that don't have an index file (index.html or index.php) in their root directory and have directory indexes enabled, will display a list of files.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/