RE: Apache-ssl .htaccess files
1. Create ".htaccess" file in the directory to be protected.
AuthName "This Directory Requires Authentication by A Valid User"
allow from all
Note: This file can contain adjustments for options to an Apache Directive
or certain Apache Directives themselves.
2. Create etc/apache/htusers
# cd /etc/apache
# htpasswd -c /etc/apache/htusers/htusers_id username1
3. Create additional users.
After setting the first user:
htpasswd /etc/apache/htusers/htusers NewUsersName
Note: More than one .htaccess file can accesess this file.
4. Create sub-groups of users
5. Delete users
delete the whole line to remove a user.