Welcome to WebmasterWorld Guest from 54.196.238.210

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Apache 2 ignores "Options -Indexes"

Can't disable directory listing

     

gcan

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

5+ Year Member



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.

gcan

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

5+ Year Member



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

Featured Threads

Hot Threads This Week

Hot Threads This Month