无法让 websvn 运行

无法让 websvn 运行

我正在尝试设置 websvn,但是当我尝试访问存储库时出现错误:

svn: E175002: Unexpected HTTP status 405 'Method Not Allowed' on '/svnrep/workspace/history'
svn: E175002: Additional errors:
svn: E175002: PROPFIND request on '/svnrep/workspace/history' failed: 405 Method Not Allowed

为此,我安装了 Debian 8 虚拟机 svn.mydomain.com,并设置了静态 IP 地址。Subversion 运行良好,我可以通过file:///同一台机器访问存储库,但不能通过 http 访问。我的设置如下:

root@svn:~# ls /data/svnrep
workspace

root@svn:~# ls /data/svnrep/workspace
README.txt  conf  db  format  hooks  locks

root@svn:~# svn ls file:///data/svnrep/workspace
JavaProjects/
history/
scripts/
websites/

root@svn:~# svn ls http://localhost/svnrep/workspace
svn: E175002: Unexpected HTTP status 405 'Method Not Allowed' on '/workspace'

svn: E175002: Additional errors:
svn: E175002: PROPFIND request on '/workspace' failed: 405 Method Not Allowed

root@svn:~# cat /etc/websvn/svn_deb_conf.inc 
<?php
// please edit /etc/websvn/config.php 
// or use dpkg-reconfigure websvn
$config->parentPath("/data/svnrep");
$config->setEnscriptPath("/usr/bin");
$config->setSedPath("/bin");
$config->useEnscript();
?>

root@svn:~# cat /etc/apache2/mods-enabled/dav_svn.conf | grep -v "#" | grep -v "//"

<Location /svn>

  DAV svn

  SVNPath /data/svnrep/workspace


  AuthType Basic
  AuthName "Subversion Repository"
  AuthUserFile /etc/apache2/dav_svn.passwd


  Require valid-user

</Location>

我错过了什么?

答案1

根据你的服务器配置,你应该使用这个 URL:http://localhost/svn

相关内容