免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: abel
打印 上一主题 下一主题

[教學]HTTP 認證使用 MYSQL (mod_auth_mysql) [复制链接]

论坛徽章:
0
11 [报告]
发表于 2006-03-27 14:17 |只看该作者
请教一下:


我的httpd.conf文件定义是:
<Directory /home1/mrtg/>
    Options Indexes FollowSymLinks
    AllowOverride AuthConfig
    Order Deny,Allow
    Deny from all
    Allow from 192.168.0.0/24
    require valid-user
    satisfy any
</Directory>
我现在的
.htaccess文件设定是
AuthName "Mysql Admin"

AuthType Basic

AuthMySQLEnable On

AuthMySQLHost localhost

AuthMySQLPort 3306

AuthMySQLUser vpopmail

AuthMySQLPassword 123456

AuthMySQLDB vpopmail

AuthMySQLUserTable vpopmail

AuthMySQLNameField  pw_name

AuthMySQLPasswordField  pw_clear_passwd
#AuthMySQLPwTable vpopmail
AuthMySQLPwEncryption none

AuthMySQLAuthoritative  On

vpopmail表中的定义:
pw_name 类型varchar(32)

pw_clear_passwd 类型varchar(16)


用vpopmail用户可以登陆到mysql中。
现在打开进行登陆验证的窗口,任何密码和用户都不能成功验证,提示:
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.

怎么确定问题出在哪里?

论坛徽章:
1
荣誉会员
日期:2011-11-23 16:44:17
12 [报告]
发表于 2006-03-27 14:23 |只看该作者
去看你的 error_log 說什麼

论坛徽章:
0
13 [报告]
发表于 2006-03-28 10:52 |只看该作者
日志里提示的是:
[client 192.168.1.226] File does not exist: /home1/html/mrtg
[client 192.168.1.226] MySQL ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client
[client 192.168.1.226] MySQL user LIWEI not found: /mrtg/
目录找不到,这是什么意思呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP