<Location /svn>
    DAV svn
    #SVNListParentPath on
    SVNParentPath d:\svn    ### apache auth begin
    # how to authenticate a user
     AuthType Basic
     AuthName "请输入登陆密码"
    ###(保存用户名和密码,这个文件需要用Apache的htpasswd工具创建)
    ###AuthUserFile D:\SubversionAuthor\apache_authz 
     AuthUserFile D:\SubversionAuthor\apache_authz
     Require valid-user
    ### apache auth end    ### svn auth begin
    # our access control policy
    ##(保存用户访问的权限策略)
    ##AuthzSVNAccessFile D:\SubversionAuthor\svn_authz  
    ##AuthzSVNAccessFile D:\SubversionAuthor\svn_authzfile 
    # authentication if necessary
    #Satisfy Any
    ### svn auth end
</Location>

解决方案 »

  1.   

    $svn_repos_loc  =  "d:\\svn";
    $svn_passwd_file  =  "D:\\SubversionAuthor\\apache_authz";
    $svn_access_file  =  "d:\\SubversionAuthor\\svn_authzfile";// If $svnserve_user_file is defined, then SVNManager will create a
    // user/password file suitable for use with SVNSERVE
    //$svnserve_user_file = "D:\\SubversionAuthor\\svnserve_user_file"; 
      

  2.   

    svnmanager的设置少了一段
    $htpassword_cmd     = "d:\\Progra~1\\Apache~1\\Apache2.2\\bin\\htpasswd";
    $svn_cmd            = "D:\\svnServer\\bin\\svn";
    $svnadmin_cmd       = "D:\\svnServer\\bin\\svnadmin";//Subversion locations
    $svn_repos_loc  =  "d:\\svn";
    $svn_passwd_file  =  "D:\\SubversionAuthor\\apache_authz";
    $svn_access_file  =  "d:\\SubversionAuthor\\svn_authzfile";// If $svnserve_user_file is defined, then SVNManager will create a
    // user/password file suitable for use with SVNSERVE
    //$svnserve_user_file = "D:\\SubversionAuthor\\svnserve_user_file"; 
    设置用户密码,
      

  3.   

    $svn_repos_loc = "d:\\svn";
    $svn_passwd_file = "D:\\SubversionAuthor\\apache_authz";
    $svn_access_file = "d:\\SubversionAuthor\\svn_authzfile";
    请问上面的svn apache_authz svn_authzfile这些是自己手工建的文件?还是自动生成的,其中文件内容应该怎么写??谢谢
      

  4.   

    其中apache_authz是通过"htpasswd –c 文件路径 用户 "来创建的
    svn权限配置文件svn_authzfile自己创建的
    文件大致格式如下[项目名:项目路径]
    用户名 = rw # r read, w write例子 tom拥有a项目的根目录的读写权限 kate 有读的权限
    [a:/]
    tom = rw
    kate = r