如何为目录/存储库配置SVN访问列表?

时间:2010-05-31 12:16:29

标签: svn windows-server-2008 apache2

我有下一个在Windows Server 2008下运行Apache 2.2的SVN存储库结构:

http://example.com/svn/定位到e:\svn(root)

http://example.com/svn/dir/的目标是e:\svn\dir(某个目录中包含多个存储库)

http://example.com/svn/dir/repo/的目标是e:\svn\dir\repo(存储库本身)

如何访问列表,以便小组@foorw repo的访问权限?

我有下一个访问列表:

[groups]
@foo = user1, user2

[/]
* = r

[dir/repo:/]
@foo = rw

最后一个字符串在我尝试的任何组合中都不起作用

Apache conf是下一个:

<Location /svn>
    SVNParentPath "E:\SVN"

    DAV svn
    SVNListParentPath on
    AuthType Basic
    AuthName "Subversion repositories"
    Require valid-user

    AuthUserFile svn-auth.txt
    AuthzSVNAccessFile svn-acl.txt
</Location>

<Location /svn/dir/>
    SVNParentPath "E:\SVN\Dir"

    DAV svn
    SVNListParentPath on
    AuthType Basic
    AuthName "Subversion repositories"
    Require valid-user

    AuthUserFile svn-auth.txt
    AuthzSVNAccessFile svn-acl.txt
</Location>

<Location /svn/dir2/>
    SVNParentPath "E:\SVN\Dir2"

    DAV svn
    SVNListParentPath on
    AuthType Basic
    AuthName "Subversion repositories"
    Require valid-user

    AuthUserFile svn-auth.txt
    AuthzSVNAccessFile svn-acl.txt
</Location>

1 个答案:

答案 0 :(得分:2)

如果您已将其配置为

<Location /dir>
    SVNParentPath e:\svn\dir
    AuthzSVNAccessFile e:\accesslist.txt

然后你可能只想要

[repo:/]

因为访问列表将相对于e:\ svn \ dir。如果没有,你可以发布&lt; Location&gt; e:\ svn \ dir的片段?谢谢!