正确配置测试 svn/apache 服务器
我正在测试 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为:
应该可以通过以下方式访问
您可以通过将浏览器指向所有可用存储库的列表(请注意,svnclients 不支持此列表!)
替代方案:
将可以在下访问
应该可以通过
I think:
should be accessible by
You can get a list of all repositories available by pointing your browser to (note that this list is not supported by svnclients!)
Alternative:
will be accessible under
should be accessible by