[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: Apache-ssl .htaccess files



1. Create ".htaccess" file in the directory to be protected.

AuthUserFile /etc/apache/htusers
AuthName "This Directory Requires Authentication by A Valid User"
AuthType Basic
require valid-user
order deny,allow
allow from all

CHMOD: 755

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
Password
Password

CHMOD: 644

<hr>

3. Create additional users.
After setting the first user:

htpasswd /etc/apache/htusers/htusers NewUsersName
Password
Password

Note: More than one .htaccess file can accesess this file.

<hr>

4. Create sub-groups of users

<hr>
5. Delete users
delete the whole line to remove a user.

<hr>



Reply to: