- 论坛徽章:
- 0
|
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
请教高手该如何解决上述问题??谢谢! |
|