Windows下Apache2上的只读SVN

如何在Windows Server 2008 Apache2下为SVN存储库设置写入访问策略? 请帮忙。 TIA!

UPDATE1:

我已经有下一个configuration了:

 <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> 

使用htpasswd创build的文件D:\Program Files (x86)\Apache 2.2\svn-auth.txt ,如下所示:

 foobar:$apr1$cV5.....$iwiJXkY6qlKopphUxlPMM/ 

一切正常。

文件D:\Program Files (x86)\Apache 2.2\svn-acl.txt样子:

 [groups] full = foobar [/] @full = rw * = r 

而当我取消评论AuthzSVNAccessFile svn-acl.txt

 403 Forbidden You don't have permission to access /svn/ on this server. 

这是一个error.loglogging:

 The URI does not contain the name of a repository. [403, #190001] 

我需要下一个目录结构:

E:\SVN是所有存储库的根目录 – 我想列出所有。 它包含E:\SVN\test – 是一个项目存储库。

E:\SVN\foobar – 是一个包含E:\SVN\foobar\fooE:\SVN\foobar\bar – 项目存储库的子目录。

尝试在位置svn之后添加斜线 – 将其从中更改

 <Location /svn> 

 <Location /svn/> 

不是很直观,通过这个论坛发现。

设置匿名只读svn访问放在您的虚拟主机configuration为Apache:

 <Location /svn> DAV svn SVNPath /somewhere/svn <LimitExcept GET PROPFIND OPTIONS REPORT> Order deny,allow Deny from all </LimitExcept> 

svn与authentication/写访问限制 – 看看这里 。

你可以在本章中的“ 颠覆版本控制 ”中find更多的细节。