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

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

 



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


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

  Powered by Linux