Whoops, if you're using Apache and you wanna make this really easy, just use a .htaccess file in the directory you want to password protect:
AuthUserFile /home/you/www/priv_dir/.htpasswd
AuthName "Private"
AuthType Basic
require valid-user
Then use:
htpasswd -c /home/you/www/priv_dir/.htpasswd username
To set up a username and password for that directory.
use htpasswd without -c to add more users
For this to work, make sure in access.conf within the <Directory /home/you/www/>
#AllowOverride None
is commented out like this, and
AllowOverride AuthConfig
is uncommented
You will need to restart Apache if you change access.conf
Wow, I have writers cramp ;-)