You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Baily, Rob" <rb...@servicebench.com> on 2004/05/11 17:16:52 UTC

[users@httpd] Unable To Get -Indexes Option To Work With autoindex Enabled

We are running Apache 2.0.49 and I have been unable to suppress any
directory listings when there is no index page.

 

I've tried using the -Indexes stuff in Options but it still gives a file
list.  I've included all of the directives in my conf file that have to do
with options.  Any ideas?

 

<Directory />

    Options +FollowSymLinks +Includes -Indexes

    AllowOverride All

</Directory>

 

<Directory "/export/home/serviceb/dev/docs">

    Options +FollowSymLinks

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

 

<Directory "/usr/local/apache/icons">

    Options +Indexes +MultiViews

    AllowOverride None

    Order allow,deny

    Allow from all

</Directory>

 

<Directory "/usr/local/apache/manual">

    Options +Indexes

    AllowOverride None

    Order allow,deny

    Allow from all

 

    <Files *.html>

        SetHandler type-map

    </Files>

 

    SetEnvIf Request_URI ^/manual/de/ prefer-language=de

    SetEnvIf Request_URI ^/manual/en/ prefer-language=en

    SetEnvIf Request_URI ^/manual/fr/ prefer-language=fr

    SetEnvIf Request_URI ^/manual/ja/ prefer-language=ja

    SetEnvIf Request_URI ^/manual/ko/ prefer-language=ko

    SetEnvIf Request_URI ^/manual/ru/ prefer-language=ru

    RedirectMatch 301 ^/manual(?:/(de|en|fr|ja|ko|ru)){2,}(/.*)?$
/manual/$1$2

</Directory>

 

<Directory "/usr/local/apache/cgi-bin">

    AllowOverride None

    Options None

    Order allow,deny

    Allow from all

</Directory>

 

Rob Baily
ServiceBench
rbaily@servicebench.com <ma...@servicebench.com>