|
Last updated: 06/24/2009
Create a file in the protected directory called .htaccess (leading . is important)
In that file, put these lines:
AuthName "Section Name" AuthType Basic AuthUserFile /full_path_to_protected_directory/.htpasswd Require valid-user
Next, run this command:
htpasswd -c .htpasswd username
Enter a password for "username", and this should do it.
To add more users, run this command:
htpasswd .htpasswd username2
blog comments powered by
|