我有两组仓库, web和engineering 。 我大约3个月前安装了web ,它工作的很好,我试图移动engineering到这个相同的SVN服务器,我得到一个PROPFIND of /svn/engineering/main: 405 Method Not Allowed错误,当我尝试做结帐。
我可以结帐/提交/svn/web就好了
dav_svn.conf
这是在这个文件中未注释的唯一的东西….
<Location /svn/web> DAV svn SVNParentPath /var/svn-repos/web AuthType Basic AuthName "SVN Repository" AuthUserFile /etc/svn-auth-file Require valid-user </Location> <Location /svn/engineering> DAV svn SVNParentPath /var/svn-repos/engineering AuthType Basic AuthName "SVN Repository" AuthUserFile /etc/svn-auth-file Require valid-user </Location>
在/ var / svn的,回购/
drwxrwx--- 3 www-data subversion 4096 2010-06-11 11:57 engineering drwxrwx--- 5 www-data subversion 4096 2010-04-07 15:41 web
/ var / svn-repos / web – WORKING
drwxrwx--- 7 www-data subversion 4096 2010-04-07 16:50 site1.com drwxrwx--- 7 www-data subversion 4096 2010-03-29 16:42 site2.com drwxrwx--- 7 www-data subversion 4096 2010-03-31 12:52 site3.com
/ var / svn-repos / engineering – NOT WORKING
drwxrwx--- 6 www-data subversion 4096 2010-06-11 11:56 main
我认为多个地点彼此混淆 – 或者说,第一个是在工作,隐藏第二个(你可以通过把工程放在networking之前,看看networking是否还能工作来certificate这一点)。
您可以使用一个位置公开多个回购:
<Location /svn/>
这将允许您浏览http://website/svn/web和http://website/svn/engineering罚款。 如果要在inputhttp://website/svn时列出它们,请添加
SVNListParentPath on
我正在做与SVN服务器基本相同的事情。 这是从我的SVN服务器的Apacheconfiguration相关的片段:
<VirtualHost *:443> <Location /webdev> DAV svn SVNParentPath /usr/local/svn/repos AuthType Basic AuthName "WebDev SVN" AuthUserFile /path/to/.htpasswd AuthGroupFile /path/to/.htgroup Require group webdev </Location> <Location /appeng> DAV svn SVNParentPath /usr/local/svn_appeng/repos AuthType Basic AuthName "AppEng SVN" AuthUserFile /path/to/.htpasswd AuthGroupFile /path/to/.htgroup Require group appeng </Location> </VirtualHost>
希望这可以帮助。
记住重新启动Apache是一个重要的步骤…使用这个如何正确设置SVN的主要例子