[users at httpd] apache displaying the directory contents...

bruce bedouglas at earthlink.net
Mon Jul 25 16:03:37 UTC 2005


hi...

what you describe is what i also believed.. however, when i actually have
the 'Options -Indexes" in the '<Directory' block, i still get the index...

i'm running apache2.x i get the same behavior regardless of if the
Options -Indexes is commented/uncommented...

thanks.

bruce


-----Original Message-----
From: replies-lists-redhat at listmail.innovate.net
[mailto:replies-lists-redhat at listmail.innovate.net]
Sent: Monday, July 25, 2005 8:40 AM
To: bedouglas at earthlink.net
Subject: RE: [users at httpd] apache displaying the directory contents...


with apache 2.x the "-Indexes" item on the "Options" set for the
appropriate documentroot will turn off directory browsing.

with apache 1.x the "-Indexes" option may work, but it's possible that
the "-" flag isn't supported in that release. simply removing the
"Indexes" item from the "Options" set works in both 1.x and 2.x, and is
probably simpler.

obviously you have to restart httpd after you've made that change to the
httpd.conf.


------------ Original Message ------------
> Date: Monday, July 25, 2005 07:42:36 AM -0700
> From: bruce <bedouglas at earthlink.net>
> To: users at httpd.apache.org, 'Jirka Vejrazka'
<jirka.vejrazka at gmail.com>, fedora-list at redhat.com
> Cc:
> Subject: RE: [users at httpd] apache displaying the directory contents...
>
> i'm still trying to figure out how to 'turn off indexing' or hot to
> disable indexing of a directory in apache. i have a index.php file. if
> i rename the file, apache displays the directory of the document...
>
> i've reviewed what information i've been able to find via google. i
> have the following in my httd.conf file:
>
> LoadModule status_module modules/mod_status.so
> LoadModule autoindex_module modules/mod_autoindex.so
> LoadModule asis_module modules/mod_asis.so
> .
> .
> .
>#
># 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
> resolve this issue with no luck.
>
> any thoughts/ideas/comments from people who actually know apache would
> be appreciated!!!
>
> can't seem to see what should be a simple issue.
>
> -bruce
>
>
>
>
>
> -----Original Message-----
> From: Jirka Vejrazka [mailto:jirka.vejrazka at gmail.com]
> Sent: Monday, July 25, 2005 7:00 AM
> To: users at httpd.apache.org
> Subject: Re: [users at httpd] apache displaying the directory contents...
>
>
>> > i'm trying to figure out how to stop apache from displaying the
>> > directory
>> > contents if the index.html/php/etc file is not found...
>
>   I usually don't compile module autoindex during apache installation.
> If you don't compile apache yourself, just comment it out from config
> file (hopefully, it's dynamic). Just comment out the line which says
> "LoadModule autoindex....", check the configfile for any directives
> that are related to the module and comment out these too.
>
>    Jirka
>
> ---------------------------------------------------------------------
> 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 at httpd.apache.org
>    "   from the digest: users-digest-unsubscribe at httpd.apache.org
> For additional commands, e-mail: users-help at httpd.apache.org
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

---------- End Original Message ----------




More information about the fedora-list mailing list