RE: [users@httpd] apache displaying the directory contents...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
[mailto:replies-lists-redhat@xxxxxxxxxxxxxxxxxxxxx]
Sent: Monday, July 25, 2005 8:40 AM
To: bedouglas@xxxxxxxxxxxxx
Subject: RE: [users@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@xxxxxxxxxxxxx>
> To: users@xxxxxxxxxxxxxxxx, 'Jirka Vejrazka'
<jirka.vejrazka@xxxxxxxxx>, fedora-list@xxxxxxxxxx
> Cc:
> Subject: RE: [users@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@xxxxxxxxx]
> Sent: Monday, July 25, 2005 7:00 AM
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re: [users@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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux