我的错误日志文件中出现错误"配置中未指定AuthUserFile".如何解决它.这是我的.htaccess文件,它位于亚马逊文件服务器中.
## mod auth_mysql
AuthBasicAuthoritative Off
AuthMYSQL on
AuthMySQL_Authoritative on
AuthMySQL_DB dbname
Auth_MySQL_Host localhost
Auth_MySQL_User username
Auth_MySQL_Password password
AuthMySQL_Password_Table tbl_name
AuthMySQL_Username_Field user_name
AuthMySQL_Password_Field password
AuthMySQL_Empty_Passwords off
AuthMySQL_Encryption_Types SHA1Sum
# Standard auth stuff
AuthType Basic
AuthName "restricted zone"
Require valid-user
Run Code Online (Sandbox Code Playgroud)
你应该简单地说一个
AuthUserFile /dev/null
Run Code Online (Sandbox Code Playgroud)
在你的.htaccess中.这对我有用.
对于带来auth_mysql配置的其他痛苦,你完全理解:)