设置Apache和SVN

那么当我想要运行SVN时,我有一个问题, 我已经浏览了所有相关的问题,但我不能得到什么是错的在我的情况 。 所以这就是为什么我决定在这里发布我的问题,请帮助我仔细检查所有的步骤。

我使用Apache版本2.0,我的SVN版本是1.4。

我收到:“禁止您无权访问此服务器上的/ svn /。 当我进入

http://localhost/svn/ 

在我的电脑里

禁止您无权访问此服务器上的/ svn /。


本地端口80上的Apache / 2.0.64(Win32)SVN / 1.4.0 DAV / 2服务器

我已经在这里设置了我的apache和SVN服务器,但是我不知道我的设置有什么问题,我正在接受权限拒绝错误消息。 我想知道帮助我,并仔细检查我的工作,以确定问题的根源。

我的httpd.conf:

 <Location /svn/> DAV svn SVNParentPath c:/svnroot/ SVNListParentPath on AuthzSVNAccessFile bin/apachesvnauth AuthType Basic AuthName "Subversion repository" AuthUserFile bin/apachesvnpasswd Require valid-user </Location> 

我的validation文件。

 [/] * = r [test1:/] user1 = rw user2 [test2:/] user1 = r user2 = rw 

如果您需要更多的信息,请留言,以便我与您分享。 我正在使用Windows XP。 还有一件事我已经把SVN和repository文件夹的所有读写权限分配给我自己的用户。

我的apache日志如下:

 > [Wed Apr 10 15:49:34 2013] [notice] Server built: Oct 18 2010 01:36:23 > [Wed Apr 10 15:49:34 2013] [notice] Parent: Created child process 1656 > [Wed Apr 10 15:49:35 2013] [notice] Child 1656: Child process is > running [Wed Apr 10 15:49:35 2013] [notice] Child 1656: Acquired the > start mutex. [Wed Apr 10 15:49:35 2013] [notice] Child 1656: Starting > 250 worker threads. [Wed Apr 10 15:49:48 2013] [error] [client > 10.8.8.139] Access denied: 'user1' GET svn:/ 

在你的<Location /svn/>块中添加Order allow,denyAllow from all

  1. 如果你的服务器是Windows主机(就像我从SVNParentPathstring中看到的SVNParentPath ),写完整path (不是相对的)到AuthzSVNAccessFile | AuthUserFile
  2. 您可以通过添加(临时) Satisfy any位置容器来testing对存储库的匿名访问
  3. 如果你想在configuration中有明确的访问规则(而缺less意味着Allow from all AFAICR Allow from all ),并且string到位置容器也不是目录
  4. 通过访问testingconfiguration

    • 存储库 ,而不是存储库的根
    • SVN客户端 ,而不是浏览器(你会看到所有可能的套路一击)

5.在test1 repo中修复user2,使用正确的行格式