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. 增加模块载入
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,执行以下命令
4.要进一步控制访问权限,要加上: