简体   繁体   English

带有plesk的Linux Ubuntu上的多个svn存储库

[英]Multiple svn repositories on linux Ubuntu with plesk

I have a linux vserver and a domain "mydomain".I already have an working svn and trac system, but a liitle problem with multiple repositories. 我有一个Linux vserver和一个域“ mydomain”。我已经有一个可用的svn和trac系统,但是存在多个存储库的问题。

my repositorie path is : 我的存储库路径是:

/var/www/vhosts/mydomain.com/svn/repo1

and

/var/www/vhosts/mydomain.com/svn/folder/repo2
/var/www/vhosts/mydomain.com/svn/folder/repo3
/var/www/vhosts/mydomain.com/svn/folder/repo4

now I want to connect through https: this already working for repo1, but not for the others.Actually my vhost_ssl.conf is under /var/www/vhosts/svn.mydomain.com/conf/ as a subdomain.with my vhost.conf : 现在我想通过https连接:这已经适用于repo1,但不适用于其他人。实际上,我的vhost_ssl.conf在/var/www/vhosts/svn.mydomain.com/conf/下作为vhost的子域。 conf:

  1<Location /svn>
  2    DAV svn
  3    SVNParentPath /var/www/vhosts/mydomain.com/svn/
  4    AuthType Basic
  5    AuthName "My Repository"
  6    AuthUserFile /var/www/vhosts/mydomain.com/svn/svn.password
  7    Require valid-user
  8 </Location>

so i can reach svn through https://svn.mydomain.com/svn/repo1 所以我可以通过https://svn.mydomain.com/svn/repo1到达svn

What should I do, to get following: 1.Reach repo 1 with https://svn.mydomain.com/repo1 我该怎么做,以获取以下信息:1.使用https://svn.mydomain.com/repo1到达repo 1

2.Reach repo2 .. repo4 through https://svn.mydomain.com/repoX ? 2.通过https://svn.mydomain.com/repoX到达repo2 .. repo4吗?

Point 1 点1

Repo in root will have some troubles for the rest of non-svn part of site under root (can't recall exact URL(s) to the discussion here, on SF, but you can try to find - they have svn-related tag(s), "Location /" in body and at least one my answer) 根目录下的回购将对根目录下的站点的其余非svn部分产生一些麻烦(无法回忆起此处关于SF讨论的确切URL,但是您可以尝试查找-它们具有与svn相关的标签(s),正文中的“位置/”和至少一个我的答案)

Point 2 点2

With /folder/ for repo[234] path you can't have common for repo1 and these repos SVNParentPath'ed Location (without additional tricks in Apache config - /svn and /folder pathes must be equivalent) 使用/ folder /作为repo [234]路径,您将无法使用repo1和这些repos SVNParentPath的位置(在Apache配置中没有其他技巧-/ svn和/ folder路径必须等效)

Point 3 点3

SVNPath can be used for totally unrelated by path repositories, but every SVNPath must be inside unique Location SVNPath 可以用于完全不相关的路径存储库,但是每个SVNPath 必须在唯一的位置内

<Location /repo1>
    DAV svn
    SVNPath /var/www/vhosts/mydomain.com/svn/repo1
    ...
</Location>
<Location /repo2>
    DAV svn
    SVNPath /var/www/vhosts/mydomain.com/svn/folder/repo2
    ...
</Location>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM