
Password files are created and maintained using the htpasswd utility distributed by NCSA. Usage: htpasswd .htaccess fred flintstone adds the user/password pair "fred" with password "flintstone" to the user access file ".htaccess". If user "fred" is already in the file, then the new password replaces the previous; otherwise, the new user and password are added to the file.
Usage: htpasswd -c .htaccess creates an empty user access file ".htaccess". This utility is installed in the /bin directory of all cgi-capable virtual Web servers.
Step by step directions: (Words in bold are keywords to change to adapt to your needs):
____________
Create a file to put in the folder access above htdocs. In this
file put:
username:
password:
____________
Put folder name and .htaccess file (upload as text)
AuthType Basic AuthName in Dialog box AuthUserFile /clients/www/shared/domainname/access/filename <Limit Get Post Put> order allow,deny allow from all require valid-user </Limit>
_________________________________
EXAMPLE:
Create a file to put in the folder "access" above htdocs named
flintstone. In this file put:
fred:
flintstone:
____________
Put folder name and .htaccess file (upload as text) (MUST BE FOLDER
OR WON"T WORK)
Folder name: membersonly
____________
.htaccess is as follows when put in folder membersonly
AuthType Basic AuthName sign in for members only AuthUserFile /clients/www/shared/livezone/access/flintstone <Limit Get Post Put> order allow,deny allow from all require valid-user </Limit>
![]() www.livezone.com |
Last Updated January 2007 |