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

=================================================================
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