发现了一个小问题

来源:互联网 发布:全国软件城市排名 编辑:程序博客网 时间:2024/04/20 04:54

使用apache架设svn服务器的时候,当把权限交给AuthzSVNAccessFile模块之后,将不能在网页上浏览repos,要在对代码进行修改,在location的位置最后加一个/,才可以浏览库的根目录,即:

<Location /svn/>
    DAV svn
    # SVNPath "C:/Repository Server/mcu"
    SVNParentPath "C:/Repository Server"
    AuthzSVNAccessFile "C:/Repository Server/access/access.htaccess"
    AuthType Basic
    AuthName "Subversion repository"
    AuthUserFile "C:/Repository Server/passwd/passwd.htpasswd"
    Require valid-user
    SVNListParentPath on
    SetOutputFilter DEFLATE
    # Insert additional directives here.
</Location>

 

在安装apache2 httpserver之后要增加它的服务,具体命令是:apache -k install