Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Aug 20, 2017 4:45 am


Guides and tutorials for Red Hat Linux, Debian, Suse and others.

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

Joined: Tue Aug 04, 2009 9:16 am
Posts: 245

Offline
 

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.





Top
Display posts from previous:  Sort by  
E-mail friendPrint view
Who is online
Users browsing this forum: No registered users and 0 guests
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO