AllowOverride All
2. create user account:
$ htdigest -c .htpasswd "MD5 Digest authentication test" ywwang
^^^^^^^^^^^^^^^^^^^^^^
A
Adding password for ywwang in realm MD5 Digest authentication test.
New password:
Re-type new password:
$ more .htpasswd
ywwang:MD5 Digest authentication test:223148e89875e6ff0035242a7be3abcd
3. create .htaccess file:
AuthDigestFile /home/ywwang/public_html/private/.htpasswd
AuthType Digest
AuthName "MD5 Digest authentication test"
^^^^^^^^^^^^^^^^^^^^^^
B
AuthDigestDomain /~ywwang/private/ http://192.168.0.139/~ywwang/private/
AuthDigestNonceLifetime 300
require valid-user
NOTE: Part A should be equal to part B.
Login screen:
http://www.wretch.cc/album/show.php?i=ywwang&b=2&f=1091433774.jpg
沒有留言:
張貼留言