Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

htaccess Digest authentication

I'd like to protect a folder by .htaccess. The following doesn't work. It displays the login dialog in a browser, but it looks as if the username and password don't match. When I changed the method to Basic, it worked fine.

AuthUserFile /home/pass/.htpasswd
AuthName "Login"
AuthType Digest
Require valid-user
like image 815
user965748 Avatar asked Feb 19 '23 19:02

user965748


1 Answers

The digest authentication method uses a different type of password file. You can't use a password file generated for BASIC to use with DIGEST. You need to use the htdigest command (or some equivalent online digest file generator) to create the password file.

like image 73
Jon Lin Avatar answered Mar 05 '23 10:03

Jon Lin