You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Stone <an...@hotmail.com> on 2005/06/14 04:54:01 UTC

[users@httpd] 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.

Would someone kindly point me in the right direction on how to set this same 
knob in Apache-2x...??

Appreciate any help....

Best regards,
Jack

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org