Apache Web-Serving with Mac OS X, Part 4
Subject:   How do I password protect a different directory?
Date:   2002-03-06 05:21:07
From:   hammer09
I have been able to get the password protection to work properly as explained in the turtorial but it is securing the main site (i.e. Library/WebServer/Documents). What if I would like to secure the directory Library/WebServer/Documents/Clients? Thanks in advance for your help.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Morbus Iff photo How do I password protect a different directory?
    2002-03-11 16:45:42  Morbus Iff | O'Reilly Author [View]

    The .htaccess file is the key to the whole thing. In the example in the article, you can move the '.htaccess' file to any directory, and that directory will be secured. In your case, simply move .htaccess to your Clients directory, and the passwords you set up in the .htpasswd should work there.