免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 847 | 回复: 4
打印 上一主题 下一主题

redhat9下web访问的用户认证问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-27 16:09 |只看该作者 |倒序浏览
web访问的用户认证问题!

为了实现对cvs的用户认证,按照各位高手曾经说过的方法分别对如下文档进行了修改
httpd.conf

添加:
Alias /cvsweb/ "/usr/local/cvsweb/"

<Directory "/usr/local/cvsweb/">;
Options ExecCGI
AllowOverride authconfig
Order allow,deny
Allow from all
</Directory>;

在/usr/local/cvsweb/下创建:

/usr/bin/htpasswd -c /usr/local/cvsweb/cvsweb.passwd test

password: test
confim passwd:test

在/usr/local/cvsweb/下创建.htaccess文件

AuthName "CVS Auth"
AuthType Basic
AuthUserFile /usr/local/cvsweb/cvsweb.passwd
require valid-user

完成上述工作后重新启动httpd的服务
然后登陆http://serverip/cvsweb/
弹出用户登陆的对话框,输入test
密码:test
提示如下错误信息:
Authentication required!
This server could not verify that you are authorized to access the URL "/cvsweb/". You either supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
In case you are allowed to request the document, please check your user-id and password and try again.
If you think this is a server error, please contact the webmaster


请教高手该如何解决上述问题??谢谢!

论坛徽章:
3
2015亚冠之卡尔希纳萨夫
日期:2015-08-04 19:46:43数据库技术版块每日发帖之星
日期:2015-08-07 06:20:00数据库技术版块每日发帖之星
日期:2016-08-15 06:20:00
2 [报告]
发表于 2004-12-28 11:23 |只看该作者

redhat9下web访问的用户认证问题

在httpd.conf中直接设置不要用.htaccess

论坛徽章:
0
3 [报告]
发表于 2004-12-28 12:13 |只看该作者

redhat9下web访问的用户认证问题

请教楼上的高手,该如何设置呢?在<Directory "/usr/local/cvsweb/">; 这个里面设置嘛?请指点!
谢谢!!

论坛徽章:
0
4 [报告]
发表于 2004-12-28 12:18 |只看该作者

redhat9下web访问的用户认证问题

Alias /cvsweb/ "/usr/local/cvsweb/"

<Directory "/usr/local/cvsweb/">;
Options ExecCGI
AllowOverride authconfig
AuthName "CVS Authorization"
AuthType Basic
AuthUserFile /usr/local/cvsweb/cvsweb.passwd
require valid-user
Order allow,deny
Allow from all
</Directory>;
按照您的提示我在http.conf中作了入上的修改,可是还是出现上面的现象。请指教!
谢谢了!

论坛徽章:
0
5 [报告]
发表于 2004-12-28 13:24 |只看该作者

redhat9下web访问的用户认证问题

谢谢ipx-spx的提示!
后来我发现是cvsweb.passwd的属主和属组的问题,应该将其都改成apache就可以了!
再次表示感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP