From: "Boyle Owen" <[EMAIL PROTECTED]>
Reply-To: users@httpd.apache.org
To: <users@httpd.apache.org>
Subject: RE: [EMAIL PROTECTED] Forbid Directory Listings
Date: Tue, 14 Jun 2005 14:31:44 +0200
> -----Original Message-----
> From: Jack Stone [mailto:[EMAIL PROTECTED]
> Sent: Dienstag, 14. Juni 2005 04:54
> To: users@httpd.apache.org
> Subject: [EMAIL PROTECTED] Forbid Directory Listings
>
>
> I've just moved to Apache-2.0.54 from Apache-1.33x on FBSD-5.4
>
> There is one feature that the Apache-1.33 appears to have by
> default I
> liked, but is not yet working for me on Apache-2.0x and I
> have looked at my
> configs & the archives until my head is exploding for the knob(s).
>
> The feature in Apache-1.33 wanted:
> If a directory is without an index.htm(or php, etc), the
> browser will show
> this error:
> ====================================
> Forbidden
> You don't have permission to access /tmp/ on this server.
> --------------------------------------------------------------
> ------------------
> Apache/1.3.33 Server at www.domain.com Port 80
> ====================================
>
> Thus, the above prevents browsers to search a directory at
> will. If one
> knows the right filename, then that will work and is okay,
> but I don't want
> someone seeing an open list of files contained in the directory.
It is an argument to the "Options" directive:
Options -Indexes
will switch off directory indexing (see
http://httpd.apache.org/docs-2.0/mod/core.html#options for details).
BTW, 1.3 and 2 have the same default (allow indexing) so I don't know why
you get different behaviour - your configs must differ (or there are
additional directives in a .htaccess file).
Rgds,
Owen Boyle
Owen: Thanks so much! That was the knob I was looking for.
Sorry I didn't look at the "Options" page even though the config file says
"important."
It's usually something simple overlooked.
BTW: Both my apache-1.3 and 2 have this config line:
Options Indexes FollowSymLinks
So, dunno why 1.3x is denying any listing of directories and that through me
off that trail.
Once I added the minus to -Indexes - Voila!
Best of regards to you,
Jack
_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfeeŽ
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]