October 15th, 2000, 11:21 AM
Here are my questions:
I'm running Apache 1.3.14 under Win2k. The root is configured as c:mywebsite. There is c:mywebsiteinclude directory with a bunch of files I don't want to be seen from the web. When I go to localhost/include, Apache displays a directory listing.
How can I configure Apache not to display a directory listing and pretend that a directory does not exist, even if that directory has an index.html file in it? Ie. how do I completely hide a directory so that anyone trying to go there will get a 401 error?
Do I have to configure that for each individual directory under c:mywebsite, and if not then how can I set it to work by default for any directory under c:mywebsite so that if I need a directory exposed, I'd have to explicitly configure Apache to make it visible?
Thanks and sorry for the long post.
October 17th, 2000, 11:15 AM
I protect individual directories by putting a .htaccess in em with:
Deny from all