#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    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.

    ------------------
    --
    Stan
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    28
    Rep Power
    0
    I protect individual directories by putting a .htaccess in em with:
    Options None
    Deny from all

IMN logo majestic logo threadwatch logo seochat tools logo