我在网页中使用 mysql 5.7.22 和 apache2.4.29 进行目录身份验证。
这是我的 apache 配置。
<Directory /home/*/public_html/private>
AllowOverride AuthConfig
AuthName "Enter your credential"
AuthType Basic
AuthBasicProvider dbd
AuthDBDUserPWQuery "SELECT authentication_string FROM user WHERE User=%s"
Require valid-user
</Directory>
这是 apache2 error.log。
[Sat Jul 21 12:57:12.005948 2018] [auth_basic:error]AH01617:
user testuser: authentication failure for "/~testuser/private":
Password Mismatch
我试过输入正确的密码。我尝试多次更改密码并测试登录但无法正常工作。
最佳答案
您的密码使用什么散列法?需要是sha1base64或者md5
关于mysql - 使用 mysql 和 apache 的目录中的身份验证不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51459159/