目前提供for apache2.0版本及for apache2.2版本。
(本人用的VisualSVN2.7.3)
当Subversion配置成作为Apache的一个模块运行时,在httpd.conf(在VisualSVN Server\conf)中可能是类似这下面这样的语句:
<Location /svn/>
DAV svn
SVNListParentPath on
SVNParentPath "D:/Repositories/"
SVNIndexXSLT "/svnindex.xsl"
SVNPathAuthz short_circuit
SVNCacheTextDeltas off
SVNCacheFullTexts off
SVNAllowBulkUpdates prefer
AuthName "VisualSVN Server"
AuthType Basic
AuthBasicProvider file
AuthUserFile "D:/Repositories/htpasswd"
AuthzSVNReposRelativeAccessFile "VisualSVN-SvnAuthz.ini"
AuthzSVNGroupsFile "D:/Repositories/groups.conf"
require valid-user
# Add Expires/Cache-Control header explictly
ExpiresActive on
ExpiresDefault access
</Location>
ApacehPasswd就是用来修改上面配置中的D:/Repositories/htpasswd这个文件的。
使用方法:
1、将文件Apache2xPasswd.cgi及Apache2xPasswd.cgi.ini复制到Apache的CGI脚本目录下,通常是cgi -bin目录。(这句话中的x请用相应的版本代替,如for apache2.0,则为Apache20Passwd.cgi)。为了方便,可以把Apache2xPasswd.cgi及Apache2xPasswd.cgi.ini修改为svnpwd和svnpwd.ini。下面的地址就可以输入为svnpwd了。
2、修改配置文件Apache2xPasswd.cgi.ini中auth_user_file路径,如下
[path]
auth_user_file=这里改为你的Subversion所用的AuthUserFile全路径,如D:/Repositories/htpasswd
3、将文件mod_cgi.so复制到在VisualSVN Server\bin目录下。
4、httpd-custom.conf(在VisualSVN Server\conf)没有内容。增加如下内容:
LoadModule cgi_module bin/mod_cgi.so
LoadModule alias_module bin/mod_alias.so
<IfModule alias_module>
ScriptAlias /cgi-bin/ "D:\Program Files (x86)\VisualSVN Server/cgi-bin/"
</IfModule>
5、重启VisualSVN。在ie输入https://IP地址/cgi-bin/svnpwd。即能看到修改密码的页面。
备注:mod_cgi.so在安装VisualSVN时并没有。需要安装一下apache的安装目录Apache2.2\modules下可以找到。
我Apache22Passwd和mod_cgi.so打包到一起。下载地址为:
http://download.youkuaiyun.com/detail/cneaglelee/7340993