正确配置测试 svn/apache 服务器

发布于 2024-10-21 16:59:42 字数 1439 浏览 3 评论 0原文

我正在测试 subversion,基本 svnserve 可以工作,但我有兴趣测试 Apache/Httpd 服务器。

我似乎遇到了一些问题,因为无论我在命令行上输入什么“svn list http://192.168.1.45/foo " 我得到类似

svn co http://192.168.1.45/Cool
svn: OPTIONS of 'http://192.168.1.45/Cool': 200 OK (http://192.168.1.45)

下面的 ny 文件结构

ls /apps/CollegeDir/CollegeRepository
conf  db  format  hooks  locks  README.txt

ls /apps/CollegeDir/
atmp  baseCollegeSvn  CollegeRepository  CollegeRepositoryRoot

ls /apps/CollegeDir/CollegeRepositoryRoot/
cat    dog   car   

,我使用以下方式创建了存储库:

svnadmin create /apps/CollegeDir/CollegeRepository

我可以通过以下方式访问 svnserve 的存储库:

svn list svn://192.168.1.45/apps/CollegeDir/CollegeRepository/trunk/apps/CollegeRoot

以及通过文件:

svn list file:///apps/CollegeDir/CollegeRepository/apps
CollegeDir/

但我似乎不知道如何获取svn list,使用http进程。我的问题要么是使用了错误的 http url 路径,要么是我错误地设置了 apache http.conf/subversion.conf 文件的 svn 部分。

这是我在 subversion.conf 文件中进行的测试。

<Location /trunk/apps/CollegeRoot>
   DAV svn
   SVNPath /apps/CollegeDir/CollegeRepository/
</Location>

测试的目标是简单地为没有身份验证过程的任何人提供基本的读/写功能。

顺便说一下,所有文件夹/文件都是完全打开的( 766) 和 chown 的“apache.apache”。这是为了确保测试能够正常进行。

我查看了各种网站/线程,但似乎无法确定问题。

感谢您的想法/评论。

谢谢

I'm testing subversion, the base svnserve works, but I'm interested in testing the Apache/Httpd server.

I appear to be running into something, because regardless of what I type on the cmdline "svn list http://192.168.1.45/foo" I get something like

svn co http://192.168.1.45/Cool
svn: OPTIONS of 'http://192.168.1.45/Cool': 200 OK (http://192.168.1.45)

here's ny filestructure

ls /apps/CollegeDir/CollegeRepository
conf  db  format  hooks  locks  README.txt

ls /apps/CollegeDir/
atmp  baseCollegeSvn  CollegeRepository  CollegeRepositoryRoot

ls /apps/CollegeDir/CollegeRepositoryRoot/
cat    dog   car   

I created the repository by using:

svnadmin create /apps/CollegeDir/CollegeRepository

I can access the repos for the svnserve by:

svn list svn://192.168.1.45/apps/CollegeDir/CollegeRepository/trunk/apps/CollegeRoot

as well as by the file by:

svn list file:///apps/CollegeDir/CollegeRepository/apps
CollegeDir/

But I can't seem to figure out how to get the svn list, using the http process. My issue is either in using the wrong http url path, or I've setup the svn portion of the apache http.conf/subversion.conf file incorrectly.

Here's what I have as a test in the subversion.conf file

<Location /trunk/apps/CollegeRoot>
   DAV svn
   SVNPath /apps/CollegeDir/CollegeRepository/
</Location>

The goal of the test, is to simply get a basic read/write for anyone with no auth process..

By the way, all of the folders/files are fully open (766) and "apache.apache" for the chown. This is to ensure the testing should work.

I've looked at various sites/threads but can't seem to pin down the issue.

Thoughts/comments are appreciated.

Thanks

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

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

发布评论

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

评论(1

予囚 2024-10-28 16:59:42

我认为:

<Location CollegeDir>
   DAV svn
   SVNParentPath /apps/CollegeDir/
   SVNListParentPath On
</Location>

应该可以通过以下方式访问

svn ls http://192.168.1.45/CollegeDir/CollegeRepository

您可以通过将浏览器指向所有可用存储库的列表(请注意,svnclients 不支持此列表!)

http://192.168.1.45/CollegeDir/

替代方案:

<Location CollegeRepository>
   DAV svn
   SVNPath /apps/CollegeDir/CollegeRepository
</Location>

将可以在下访问
应该可以通过

svn ls http://192.168.1.45/CollegeRepository

I think:

<Location CollegeDir>
   DAV svn
   SVNParentPath /apps/CollegeDir/
   SVNListParentPath On
</Location>

should be accessible by

svn ls http://192.168.1.45/CollegeDir/CollegeRepository

You can get a list of all repositories available by pointing your browser to (note that this list is not supported by svnclients!)

http://192.168.1.45/CollegeDir/

Alternative:

<Location CollegeRepository>
   DAV svn
   SVNPath /apps/CollegeDir/CollegeRepository
</Location>

will be accessible under
should be accessible by

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