Welcome to WebmasterWorld Guest from 54.145.55.135

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache 2 ignores "Options -Indexes"

Can't disable directory listing

     
11:29 am on Feb 19, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
posts:116
votes: 0


Hello,

Just got a new server and there is a strange problem with Apache. I copied a virtual host from old to the new server:

<VirtualHost *:80>
ServerName www.domain.com
ServerAlias domain.com *.domain.com
DocumentRoot /var/www/domain.com
<Directory /var/www/domain.com>
Options -Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
</VirtualHost>


The problem is that Apache for some reason ignores Options -Indexes and shows directory index in all directories. I can't understand where is the problem. On my old server the same virtual host doesn't show directory index.

Thanks.
12:14 pm on Feb 19, 2011 (gmt 0)

Junior Member

5+ Year Member

joined:Mar 20, 2008
posts:116
votes: 0


Resolved the problem. There was a typo in "Directory".