我的问题是, svn可以访问本地回购,但jsvn给我“403禁止”。
例:
# /usr/bin/svn info http://localhost:8888/foobar/trunk/ --username fisheye Authentication realm: <http://localhost:8888> FOOBAR SVN Password for 'fisheye': # /opt/atlassian/fecru-4.0.3/lib/svn/jsvn info http://localhost:8888/foobar/trunk/ --username fisheye svn: E170001: OPTIONS of '/foobar/trunk': 403 Forbidden (http://localhost:8888)
我服务从Apache2回购使用:
<VirtualHost *:8888> ServerName localhost <Location /> DAV svn SVNPath /var/svn/repo1 AuthUserFile /var/svn/repo1/conf/users.webdav.pw AuthzSVNAccessFile /var/svn/repo1/conf/users.webdav.acl AuthType Basic AuthName "FOOBAR SVN" <RequireAny> # require a valid user Require valid-user # or haproxy heartbeat check Require ip 127.0.0.1 </RequireAny> </Location> </VirtualHost>
/var/svn/repo1/conf/users.webdav.acl如下所示:
[/] fisheye=r
我的软件版本是:
# /usr/bin/svnserve --version svnserve, version 1.8.8 (r1568071) # /usr/bin/svn --version svn, version 1.8.8 (r1568071) # /opt/atlassian/fecru-4.0.3/lib/svn/jsvn --version jsvn, version 1.8.11 (r10483_v20150925_0010) # apache2 -v Server version: Apache/2.4.7 (Ubuntu)
任何人都知道为什么会这样呢?