I think I now understand the problem. From my experience this is a pecularity
of Apache 2. Apache 1 behaviur was different. Before an object is listed by
mod_auto_index, apache tries to access it. You can, for example do the
following test: In an autoindexed directory, create a directory, with a+rx
perms. No .htaccess. You'll see it listed. Now, create inside it an unreadble
index.html. Bang! It disappears! This behaviour is new to apache 2, I don't
like it, but this is debatable.

On Tue, 20 Jan 2004 17:50:47 +0200, Chaim Keren Tzion wrote about "Re: Apache 
.htaccess Hides Folders":
> The access permisions are/were as you suggested. The directory was visible and
> accessible before I added the .htaccess file to it. Now it is visible and
> accessible only if I give the password. I just want to be able to see the
> directories from .. (one flight up), just to know of it's existance so I can
> click on it and be asked for the user/passwd instead of having to remember that
> it is also there and have to type the directory's name in manually.
> 
> I think that this is not a rights problem and certainly not a .htaccess problem
> per say but an apache problem with both mod_auth and mod_auth_digest (I've tried
> both). I am just looking for a workaround at this point.
> 
> Has anyone out there had this work for them? ie. A passworded directory that
> shows up in Auto-Indexed; Apache served directory listings (before loging into
> the directory)?
> 
> -- 
> Chaim Keren Tzion       | [EMAIL PROTECTED]
> System Administrator    " The Hebrew University of Jerusalem
> Dept. of Neurobiology   " Tel: 972-2-658-5083
> Inst. of Life Science   " Cel: 972-2-54-652983
> Jerusalem 91904, Israel " Fax: 972-2-658-6296
> ....................... : ............................
> 
> 
> Quoting Zvi Har'El <[EMAIL PROTECTED]>:
> 
> > Shalom Chaim,
> > 
> > Your problem is simply setting unix access permissions (I assum you run a
> > unix
> > server, linux included, otherwise you wouldn't have written to this list
> > ;-)).
> > What you need is just to make the directory searchable, not readable, by the
> > apache user (normally nobody or apache in redhat), so just run
> > 
> >     chmod o=x directory_name
> > 
> > If you really need a .htaccess file, you have to make it universally
> > readbable, i.e.,
> > 
> >     chmod o+r directory_name/.htaccess
> > 
> > BTW, read the apache error file, error_log: It should tell you about the
> > permissions problem.
> > 
> > Kol tuv
> > 
> > Zvi.
> > 
> > On Mon, 19 Jan 2004 23:16:05 +0200, Chaim Keren Tzion wrote about "Apache
> > .htaccess Hides Folders":
> > > Using Apache2 with: Options +Indexes
> > > 
> > > When I limit access to a subdirectory by putting a .htaccess file inside of
> > it
> > > the subdirectory disappears from the parent's directory tree. If I manualy
> > type
> > > in the name I get the expected authentication prompt. Is there a way to
> > allow all
> > > users to see the subdirectory in the tree but limit access to the
> > subdirectory's
> > > contents?
> > > 
> > > -- 
> > > Chaim Keren Tzion       | [EMAIL PROTECTED]
> > > System Administrator    " The Hebrew University of Jerusalem
> > > Dept. of Neurobiology   " Tel: 972-2-658-5083
> > > Inst. of Life Science   " Cel: 972-2-54-652983
> > > Jerusalem 91904, Israel " Fax: 972-2-658-6296
> > > ...................... : ............................
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------
> > > This mail sent through IMP: http://horde.org/imp/
> > > 
> > > 
> > > To unsubscribe, send mail to [EMAIL PROTECTED] with
> > > the word "unsubscribe" in the message body, e.g., run the command
> > > echo unsubscribe | mail [EMAIL PROTECTED]
> > > 
> > 
> > -- 
> > Dr. Zvi Har'El     mailto:[EMAIL PROTECTED]     Department of
> > Mathematics
> > tel:+972-54-227607 icq:179294841     Technion - Israel Institute of
> > Technology
> > fax:+972-4-8293388 http://www.math.technion.ac.il/~rl/     Haifa 32000,
> > ISRAEL
> > "If you can't say somethin' nice, don't say nothin' at all." -- Thumper
> > (1942)
> >                               Tuesday, 26 Tevet 5764, 20 January 2004, 
> > 7:31AM
> > 
> 
> 
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> 

-- 
Dr. Zvi Har'El     mailto:[EMAIL PROTECTED]     Department of Mathematics
tel:+972-54-227607 icq:179294841     Technion - Israel Institute of Technology
fax:+972-4-8293388 http://www.math.technion.ac.il/~rl/     Haifa 32000, ISRAEL
"If you can't say somethin' nice, don't say nothin' at all." -- Thumper (1942)
                              Tuesday, 27 Tevet 5764, 20 January 2004,  6:20PM

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to