1.下载mysql认证模块,mod_auth_mysql_2.0.29.win32.zip
下载地址:http://www.gknw.net/development/apache/httpd-2.0/win32/modules
将.so文件拷贝到Apache的modules目录下。
2.配置httpd.conf
a. 增加模块载入
LoadModule mysql_auth_module modules/mod_auth_mysql.so
b. SVN认证
<Location /svnroot>
DAV svn
SVNPath g:/svnroot/ #如果是总目录,则为SVNParentPath
AuthName “SVNRoot Auth"
AuthType Basic
Require valid-user
AuthMySQLHost localhost
AuthMySQLUser root
AuthMySQLPassword *******
AuthMySQLDB svn
AuthMySQLUserTable svnusers
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLMD5Passwords On
</Location>
3. 如果在数据库认证时出现错误
在Apache的errors.log中显示客户端的版本有问题,进入Mysql,执行以下命令
set password for 'root'@localhost=OLD_APSSWORD('******');
4.要进一步控制访问权限,要加上:
AuthzSVNAccessFile "e:\Apache\conf\svnauthz.conf"
转载: http://blog.csdn.net/abetman/archive/2007/03/05/1520730.aspx
posted on 2007-04-01 19:07
流浪汗 阅读(1445)
评论(0) 编辑 收藏 所属分类:
Server