授予公共访问 svn 根目录的权限

发布于 2024-09-12 18:30:49 字数 499 浏览 3 评论 0原文

我想知道是否可以让人们通过 apache 和“dav_svn”模块访问 subversion 根目录。现在我只能访问比根目录低一级的存储库(“svn/game”“svn/something”但不能访问“svn/”)。
我的 httpd.conf

<Location /svn>
    DAV svn
    SVNParentPath C:/SVN
    AuthzSVNAccessFile C:/SVN/users
    Satisfy Any
    Require valid-user
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile C:/SVN/svn-auth-file
</Location>

现在,当我尝试访问根目录时,它会要求我输入用户名和密码。

如有帮助,我们将不胜感激。
谢谢。

i was wondering if it is possible to let people access subversion root directory trough apache and 'dav_svn' module. Now i can only access only repositories that are 1 level lover than root directory ("svn/game" "svn/something" but not "svn/").
My httpd.conf:

<Location /svn>
    DAV svn
    SVNParentPath C:/SVN
    AuthzSVNAccessFile C:/SVN/users
    Satisfy Any
    Require valid-user
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile C:/SVN/svn-auth-file
</Location>

Now, when i try to access root directory it asks me for a user name and a password.

Help would be appreciated.
Thank you.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

极致的悲 2024-09-19 18:30:49

我认为您要求的是访问 Subversion 存储库列表,默认情况下该列表是禁用的。

尝试在 httpd.conf 的位置块中设置 SVNListParentPath on :

...
    DAV svn
    SVNListParentPath on
    SVNParentPath C:/SVN
    AuthzSVNAccessFile C:/SVN/users
...

还需要注意的是,Subversion 客户端无法与存储库列表通信,这只能通过连接到该存储库的 Web 浏览器看到。 “根”svn 路径。

I think what you are asking for is access to the Subversion repositories list, which is disabled by default.

Try setting SVNListParentPath on in the location block of your httpd.conf:

...
    DAV svn
    SVNListParentPath on
    SVNParentPath C:/SVN
    AuthzSVNAccessFile C:/SVN/users
...

It is also important to note that Subversion clients cannot talk to the repository list, and this can only be seen through a web browser connecting to the "root" svn path.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文