我有一个svnrepo和两个项目,我可以用正确列出
[svn@www1 ~]$ svn list -R file:///svnrepos/testrepo/ <br>
projA/<br>
projB/ <br>
projB/branches/ <br>
projB/tags/ <br>
projB/trunk/ <br
projB/trunk/projA.c <br>
当我用浏览器打开http://myserver.exaple.com/testrepo/projA
时,它说没有XML样式的信息。
此外,apache错误日志有以下几行:
(20014)内部错误:无法打开文件"/svnrepos/testrepo/projA/format":没有这样的文件或目录
格式文件确实存在,但在位置
/svnrepos/testrepo/format
我相信我在httpd.conf 中有正确的东西
<Location /testrepo>
DAV svn
SVNParentPath /svnrepos/testrepo
</Location> <br>
为什么系统会在项目中寻找"格式"?
谢谢你的帮助。pnraj
您错误地配置了HTTP/SVN服务器。SVNParentPath
指令适用于在给定目录中有一整组存储库的情况,因此您已经告诉服务器http://myserver.exaple.com/testrepo/projA
映射到/svnrepos/testrepo/projA
的存储库。既然这不存在,你就得到了错误。
要解决此问题,请编辑配置以使用SVNPath
指令。