First, you need to create a password file. To create the file, use the htpasswd utility that came with Apache. This will be located in the bin directory of wherever you installed Apache.
To create the file, type:
htpasswd -c /usr/local/apache/passwd/passwords rbowen
htpasswd will ask you for the password, and then ask you to type it again to confirm it:
# htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen
Bookmarks