通过HTTPD服务器建立一个SVN回购 [英] Setting up a SVN repo through HTTPD server

查看:114
本文介绍了通过HTTPD服务器建立一个SVN回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建我的机器(OSX 10.9)上一个SVN回购。我有默认的A​​pache HTTP服务器配置,我可以通过网络浏览器与我的局域网IP访问所有文件和文件夹。

I am trying to create a svn repo on my machine(OSX 10.9). I have default Apache HTTP Server configuration and I can access all files and folders through a web browser with my IP in LAN.


  • 我在我的Apache文档根目录文件夹中创建一个SVN回购:

  • I have create a SVN repo in my Apache document root folder:

svnadmin的创建foobar的

现在,当我结帐

svn签的http://x.x.x.x/svn/foobar

我得到的错误的svn:E195019::重定向URL'//x.x.x.x/svn/foobar HTTP'检测周期
但是,我能够用下面的命令行签

I get the error svn: E195019: Redirect cycle detected for URL 'http://x.x.x.x/svn/foobar' But I am able to checkout with the following command-line

svn签的file:///路径/要/ foobar的

能否有人指出了什么错在这里?

Could some one point out what went wrong here ?

推荐答案


  • 这是不够只是把仓库在Apache的根文件夹。你必须设置Apache HTTP服务器服务于Subversion版本库。它要求你启用和配置的mod_dav_svn 模块,看的 SVNBook | httpd,Apache的HTTP服务器

当您使用文件:// 网​​址,您访问本地存储库。即它不涉及Apache HTTP服务器的。这就是为什么是这样工作的。见<一href=\"http://svnbook.red-bean.com/en/1.8/svn.serverconfig.multimethod.html#svn.serverconfig.multimethod\"相对=nofollow> SVNBook |支持多种版本库访问方法的。

When you use file:// URL, you access the repository locally. I.e. it does not involve Apache HTTP Server at all. That's why it works this way. See SVNBook | Supporting Multiple Repository Access Methods.

如果您不能安装Apache HTTP服务器,可以使用的svnserve 。它的配置比的httpd简单。请参见 SVNBook | svnserve的,自定义服务器

If you can't setup Apache HTTP Server, you can use svnserve. It's configuration is simpler than of HTTPD. See SVNBook | svnserve, a Custom Server.

顺便说一句,你可以安装一个Subversion + HTTPD服务器软件包(如VisualSVN服务器或颠覆边缘)如果你不想处理手动设置。这些软件包不支持OSX,虽然。

BTW, you can install a Subversion+HTTPD server package (e.g. VisualSVN Server or Subversion Edge) if you don't want to deal with manual setup. These packages don't support OSX, though.

这篇关于通过HTTPD服务器建立一个SVN回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆