无法从外部访问svn

时间:2012-12-01 13:21:46

标签: svn webserver centos

昨天我在mydom.com/b-htdocs上创建了一个svn存储库。在项目目录'one'中,我将测试文件夹'ajax'(因为导入所有东西需要永远)

我可以结帐并仅使用文件网址导入:

svn co file:///var/www/svn/b-htdocs/one/ajax

文件完美无缺。但是weburls不工作:

svn co http://mydom.com/b-htdocs/one/ajax --username root --password pw
svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://mydom.com/b-htdocs/one/ajax'

与mydom上的每个路径和每个用户名/ pw相同:

svn co http://mydom.com/
svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://mydom.com'

我最想要做的是使用NetBeans进行版本处理。尝试连接到http://www.mydom.com/b-htdocs会产生:

org.tigris.subversion.javahl.ClientException: Malformed XML

再次,用户名和pw似乎不重要。尝试连接到http://www.mydom.com/b-htdocs/onehttp://www.bonxx.com/b-htdocs/doesnotexits会产生:

org.tigris.subversion.javahl.ClientException: Could not open the requested SVN filesystem
OPTIONS of '/b-htdocs/one': 500 Internal Server Error (http://www.mydom.com)

当我尝试通过borwser连接到http://www.mydom.com/b-htdocs时,我输入正确的用户名和pw并查看:

Collection of Repositories
conf/
db/
hooks/
locks/
Powered by Subversion version 1.6.11 (r934486).

转到http://www.mydom.com/b-htdocs/confhttp://www.mydom.com/b-htdocs/onehttp://www.mydom.com/b-htdocs/doesnotexist会:

<D:error><C:error/><m:human-readable errcode="2">
Could not open the requested SVN filesystem
</m:human-readable></D:error>

Tortoise SVN也会抛出错误。

如何解决此访问权限问题?

继承我的svn配置:

LoadModule dav_svn_module     modules/mod_dav_svn.so
LoadModule authz_svn_module   modules/mod_authz_svn.so

<Location /b-htdocs>
DAV svn
SVNParentPath /var/www/svn/b-htdoc
SVNListParentPath on

# Limit write permission to list of valid users.
#   <LimitExcept GET PROPFIND OPTIONS REPORT>
  # Require SSL connection for password protection.
  # SSLRequireSSL

  AuthType Basic
  AuthName "Subversion repositories"
  AuthUserFile /etc/svn-auth-users
  Require valid-user
#   </LimitExcept>
</Location>

服务器运行CentOS 5.8,我通过Webmin管理,我拥有所有管理权限。你可以告诉我对SVN,CentOS或webmin不太了解。我也不知道是否有证券,这不是我的服务器(希望没有)。如果你需要任何日志告诉我whic和他们在哪里。

1 个答案:

答案 0 :(得分:1)

  1. SVNParentPath对于存储库父目录,而非存储库
  2. SVNParentPath必须网站空间,svn-space的位置虚拟目录
  3. SVN Book是你最好的恶魔