[Date Prev][Date Next][Date Index]
[etc] Adding authentication to files.
Follow the steps:
1. use "htdigest" command to add user to our password file located in
/etc/httpd/users
Usage: htdigest [-c] passwordfile realm username
The -c flag creates a new file.
2. Copy the following to the directory in a file .htaccess..
AuthName "Public" #This should be equal to realm of the user used in
htdigest
AuthType Digest
AuthDigestFile /etc/httpd/users
AuthDigestDomain Public
require user ece491 #this is the username created.
Regards
Shashank
http://mia.ece.uic.edu/~papers
Comments and corrections are appreciated and can be sent to
papers@mia.ece.uic.edu.
Click here for ©opyright information.