homepage Welcome to WebmasterWorld Guest from 54.211.213.10
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Apache 2 ignores "Options -Indexes"
Can't disable directory listing
gcan




msg:4269424
 11:29 am on Feb 19, 2011 (gmt 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.

 

gcan




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved