httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owen Boyle <...@bourse.ch>
Subject Re: diretory browsing
Date Mon, 03 Dec 2001 14:17:29 GMT
-bill- wrote:
> 
> Ok, I want to prevent directory browsing for all directories except one.
> Can that be done ?

Too easy...

# At server-config level - switch off Indexes for all
Options -Indexes

# In a directory container - switch it on again
<Directory /one/single/dir>
  Options +Indexes
</Directory>


But read (please!!) the documentation on the Options directive - the
ordering of multiple Options directives and the presence/absence of "+"
and "-" is *very* important..

Rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message