[英]Apache2 svn Multiple repositories
I goggoled a lot about the feature to have multipe repositorie in different location on a server with apache2. 我对该功能进行了很多讨论,以便在具有apache2的服务器上的其他位置具有multipe存储库。 All describe to modify /etc/apache2/mods-available/dav_svn.conf
as below: 所有描述如下修改/etc/apache2/mods-available/dav_svn.conf
:
# Subversion - team A
<Location "/a">
DAV svn
SVNPath /svn/team-a
SVNIndexXSLT "/svnindex.xsl"
</Location>
# Subversion - team B
<Location "/b">
DAV svn
SVNPath /svn/team-b
SVNIndexXSLT "/svnindex.xsl"
</Location>
I tried to modify mine, but it does not work. 我试图修改我的,但是不起作用。 Below my config: 在我的配置下面:
<Location /Repo1>
DAV svn
SVNParentPath /home/xxx/repositories/Repo1/
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn-users
</Location>
<Location /Repo2>
DAV svn
SVNParentPath /home/xxx/repositories/Repo2/
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/svn-users
</Location>
With this config none of two repositories work. 使用此配置,两个存储库都不起作用。 If I enable 1 per time, the single repo works. 如果我每次启用1,则单个存储库有效。
As you can see I want root repositories in different path: each root has different subrepositories. 如您所见,我希望根存储库位于不同的路径:每个根都有不同的子存储库。
SVNParentPath != SVNPath SVNParentPath!= SVNPath
SVNParentPath is parent-dir of all repos for location, but not repo SVNParentPath是位置的所有存储库的父目录 ,但不是存储库
At the end it was a problem on rabbit SVN. 最后,这是兔子SVN的问题。 Using terminal all is ok. 使用终端一切正常。 Reinstalling RabbitSVN all is working well. 重新安装RabbitSVN一切正常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.