如何在apache dav svn中指定存储库?

发布于 2024-07-15 01:53:50 字数 965 浏览 7 评论 0原文

我有以下设置:

<VirtualHost *:80>
    ServerName svn.project1.com

    <Location />
       DAV svn
       SVNPath /svn
    </Location>
</VirtualHost>


<VirtualHost *:80>
    ServerName svn.project2.com

    <Location />
       DAV svn
       SVNPath /svn
    </Location>
</VirtualHost>

当我导航到 http://svn.project1.com/ 或 < a href="http://svn.project1.com/" rel="nofollow noreferrer">http://svn.project1.com/,它提供了两个存储库的目录列表:

Revision 1270: /

* project1/
* project2/

Powered by Subversion version 1.4.4 (r25188)

我如何获取两个主机都指向各自的存储库?

我希望能够使用如下 URL:

http://svn.project1.com/trunk/

而不是:

http://svn.project1.com/project1/trunk/

从而阻止从project1访问例如project2,即:

http://svn.project1.com/project2/

I have the following setup:

<VirtualHost *:80>
    ServerName svn.project1.com

    <Location />
       DAV svn
       SVNPath /svn
    </Location>
</VirtualHost>


<VirtualHost *:80>
    ServerName svn.project2.com

    <Location />
       DAV svn
       SVNPath /svn
    </Location>
</VirtualHost>

When I navigate to either http://svn.project1.com/ or http://svn.project1.com/, it gives a directory listing with both repositories:

Revision 1270: /

* project1/
* project2/

Powered by Subversion version 1.4.4 (r25188)

How do I get both hosts to point to their respective repositories?

I want to be able to use URLs like:

http://svn.project1.com/trunk/

Instead of:

http://svn.project1.com/project1/trunk/

And thus prevent access to e.g. project2 from project1 viz:

http://svn.project1.com/project2/

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

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

发布评论

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

评论(4

掩于岁月 2024-07-22 01:53:50

这适用于 SVNPath /svn/project#。 但请注意,我认为这只有在您确实有两个单独的存储库时才有效。 据我从您的信息来看,您正在为这两个项目使用一个存储库。

This works with SVNPath /svn/project#. But be aware, I think this only works if you really have two seperate repositories. As far as I can tell from your information, you're using one repository for both projects.

云醉月微眠 2024-07-22 01:53:50
<Location /svn/>
     DAV svn
     SVNParentPath "D:\repos"
     SVNListParentPath On
     AuthName "Subversion repository"
     SVNPathAuthz on
     AuthType SSPI
     SSPIAuth On
     SSPIAuthoritative On
     SSPIDomain RAILINC
     SSPIOfferBasic On
     SSPIUsernameCase lower
     SSPIOmitDomain On
     AuthzSVNAccessFile "D:\repos\svnaccessfile.txt"
     Require valid-user
</Location>
<Location /svn/>
     DAV svn
     SVNParentPath "D:\repos"
     SVNListParentPath On
     AuthName "Subversion repository"
     SVNPathAuthz on
     AuthType SSPI
     SSPIAuth On
     SSPIAuthoritative On
     SSPIDomain RAILINC
     SSPIOfferBasic On
     SSPIUsernameCase lower
     SSPIOmitDomain On
     AuthzSVNAccessFile "D:\repos\svnaccessfile.txt"
     Require valid-user
</Location>
把昨日还给我 2024-07-22 01:53:50

不确定,但你试过这个吗?

SVNPath /svn/project1/

Not sure, but have you tried this?

SVNPath /svn/project1/
柏林苍穹下 2024-07-22 01:53:50

虽然使用

SVNPath /svn/projectX/

应该可以解决您的问题,但它会暴露 DavSVN 的严重缺陷。 缺陷在于它在域的根目录中存在问题。 出现随机签入错误目前没有可用的解决方案,这是一个我们必须从子域切换到子目录的问题。

While using

SVNPath /svn/projectX/

should fix your problem, it will expose a serious flaw in DavSVN. The flaw that it has problems with being at the root directory of a domain. Getting random checkin errors that at present, have no solution available, was such a problem we had to switch from a subdomain to a subdirectory.

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