我手动编译httpd-2.2.19和mod_auth_mysql-3.0.0,apache和mod_auth_mysql工作正常,但是当我尝试使用Htaccess进行mysql验证时没有验证,总是告诉我密码不正确,但是这个我检查过,这是我使用的设置。
的.htaccess
Options Indexes
AuthName "Pls enter your username & password"
AuthType Basic
AuthBasicAuthoritative Off
AuthUserFile /dev/null
AuthMYSQLEnable on
AuthMySQLHost localhost
AuthMySQLUser my_mysqluser
AuthMySQLPassword my_mysqlpass
AuthMySQLDB my_mysqldb
AuthMySQLUserTable user_auth
AuthMySQLNameField user_name
AuthMySQLPasswordField user_passwd
AuthMySQLPwEncryption off
require valid-use
Mysql表:
CREATE TABLE `user_auth` (
`user_name` char(30) NOT NULL,
`user_passwd` char(20) NOT NULL,
`user_group` char(10) DEFAULT NULL,
PRIMARY KEY (`user_name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;