httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "bruce" <>
Subject RE: [users@httpd] apache displaying the directory contents...
Date Mon, 25 Jul 2005 20:46:21 GMT

it appears that what i'm seeing has something to do with the use of the
VirtualHost/Directory directives/blocks.

is there a limit to the number of Directory blocks that Apache can have
within a VirtualHost? if i copy one of the Directory/Alias blocks to before
the VirtualHost block, Apache appears to work correctly.



-----Original Message-----
From: Joshua Slive []
Sent: Monday, July 25, 2005 10:45 AM
Subject: Re: [users@httpd] apache displaying the directory contents...

On 7/25/05, bruce <> wrote:
> i'm still trying to figure out how to 'turn off indexing' or hot to
> indexing of a directory in apache. i have a index.php file. if i rename
> file, apache displays the directory of the document...
> i've reviewed what information i've been able to find via google. i have
> following in my httd.conf file:
> LoadModule status_module modules/
> LoadModule autoindex_module modules/
> LoadModule asis_module modules/
> .
> .
> .
> #
> # Disable autoindex for the root directory, and present a
> # default Welcome page if no other index page is present.
> #
> <LocationMatch "^/$">
>     Options -Indexes
>     #ErrorDocument 403 /error/noindex.html
>     ErrorDocument 403 /foo/err.html
> </LocationMatch>
> .
> .
> .
> #condor web test
> Alias /condor /var/www/html/condor
> <Directory /var/www/html/condor>
> #don't display directory listing
> #Options All
> Options -Indexes
> #Order allow,deny
> #Allow from all
> </Directory>
> i've tried various combinations of commenting/uncommenting to try to
> this issue with no luck.
> any thoughts/ideas/comments from people who actually know apache would be
> appreciated!!!

The configuration listed above is basically correct, which means you
are missing something more basic.  I'd start by going through all of
httpd.conf (and any Include'd config files) and check every single
Option line to make sure that none of the contain "Indexes".  It is
not necessary to have "-Indexes".  The absence of the option should
turn it off.

If that doesn't do it, then you need to check to make sure you are
actually editting the same config file that apache is using.  Do you
get an error if you put an obvious syntax error in the file?


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message