|
|
AuthUserFile /users/login-name/.htpasswd AuthGroupFile /users/login-name/.htgroup AuthName "password dialogue" AuthType Basic <Limit GET> require group my-users </Limit>If your website is on our older web server (kumo) please remove the quotes from the AuthName argument.
my-users: pumpkin peanuts almonds walnutsThese are the users who are allowed to access. They will also need to have passwords defined in .htpasswd. To create this file and add the first username use the following UNIX command:
htpasswd -c /users/login-name/.htpasswd usernameAfter running the htpasswd command, you will be prompted for the users password twice. This will create a file /users/login-name/.htpasswd containing a encrypted form of the password. The -c option to the htpasswd command creates the password file so after adding the initial username use the following Unix command to add additional usernames:
htpasswd /users/login-name/.htpasswd username
chmod a+r /users/login-name/.htpasswd chmod a+r /users/login-name/.htgroup chmod a+r /users/login-name/public_html/somedir/.htaccess
More detailed info is available at http://hoohoo.ncsa.uiuc.edu/docs/tutorials/user.html
|
5021 Indian School NE Suite 600, Albuquerque NM 87110 USA helpdesk / info request: help@swcp.com | webmaster: webmaster@swcp.com phone: USA: (505) 232-7992 | fax: USA: (505) 232-7975 |