SVNListParentPath on配置以及在根目录显示项目列表

I'm one of those people around waiting for a clean solution for this issue.  For
now, I'd like to summarize two workarounds that work for me:

1) When Location is not the root (i.e., base = http://www.site.com/repos):

    RedirectMatch ^(/repos)$ $1/

    <Location /repos/>
        DAV svn
        SVNParentPath ...
        SVNListParentPath on
        ... security limitations ...
    </Location>

Notice (as stated by the bug reporter) that the 'Location' address must have a
trailing slash.  The 'RedirectMatch' statement helps the user if he forgets (or
doesn't know about) the need for the trailing slash in the URL.

2) When Location is the root (i.e., base = http://svn.site.com/):

This one is tricky:

    <Location />
        DAV svn
        SVNParentPath ...
        SVNListParentPath on
        Order deny,allow
        Allow from all
    </Location>

    <LocationMatch /.+>
        DAV svn
        SVNParentPath ...
        ... security limitations ...
    </LocationMatch>

Yes, this *is* ugly.  At least it works for me.  The key here is that the
'Location' section matches only http://svn.site.com/.  Since there is no
AuthzSVNAccessFile, the bug isn't raised (be careful that the above
configuration "as is" allows *everyone* to access the repository list).  The
'LocationMatch' matches everything but the root: here comes AuthzSVNAccessFile
and other security measures.  Also, SVNListParentPath is useless in the second
section, as it's never triggered.

I've managed to enable SVNListParentPath with authentication when Location is root:

  <Location />
    DAV svn
    SVNParentPath /path/to/svnroot
    SVNListParentPath On
  </Location>

  <LocationMatch /.+>
    # DON'T PUT DAV or SVNParentPath here
    AuthzSVNAccessFile ....
    Require ...

 

 

http://subversion.tigris.org/issues/show_bug.cgi?id=2753

可网页添加账号和控制,下面是安装心得 1.到http://phpstudy.net/download.html下载JspStudy JSP环境一键安装包,解压,进行安装,安装好后,选择其他选项菜单-JspStudy 设置-端口常规设置,进入后全做修改PHP目录需先分开解析,选择 分开解析 点应用 2.安装Setup-Subversion-1.8.17 安装时候选择Apache 2.4.X 3.安装C++ 否者修改下面数据后重启JspStudy-Apache程序会启动不了 安装C++需要重启电脑 4.进入Subversion安装目录\Subversion\bin\ 把 mod_authz_svn.so和mod_dav_svn.so 拷贝到 JspStudy\Apache\modules 目录下 5.进入Subversion安装目录\Subversion\bin\ 把 libsvn_delta-1.dll libsvn_fs-1.dll libsvn_repos-1.dll libsvn_subr-1.dll 拷贝到 JspStudy\Apache\bin 目录下 6.修改JspStudy\Apache\conf\httpd.conf文件 查找LoadModule dav_module modules/mod_dav.so把前面#号取消掉 查找LoadModule dav_fs_module modules/mod_dav_fs.so把前面#号取消掉 添加LoadModule dav_svn_module modules/mod_dav_svn.so 添加LoadModule authz_svn_module modules/mod_authz_svn.so 如果安装svnadmin-3.0.5在最下面添加 <Location /svn/> DAV svn SVNListParentPath on SVNParentPath D:/svn AuthType Basic AuthName "Subversion repositories" AuthUserFile D:/svn/passwd.http AuthzSVNAccessFile D:/svn/authz Require valid-user </Location> RedirectMatch ^(/svn)$ $1/ 7.解压svnadmin-3.0.5.zip将svnadmin.war 移动到JspStudy\tomcat\webapps 8.启动tomcat,让tomcat自行解压war包,然后编辑数据库配置文件的#mysql段,使其可以正常连接数据库 JspStudy\tomcat\webapps\svnadmin\WEB-INF\jdbc.properties #MySQL MySQL.jdbc.driver=com.mysql.jdbc.Driver MySQL.jdbc.url=jdbc:mysql://127.0.0.1:3306/svnadmin?characterEncoding=utf-8 MySQL.jdbc.username=root MySQL.jdbc.password=root 9.把phpMyAdmin解压到\JspStudy\phproot目录下 9.1.mysql创建svnadmin库导入svnadmin项目mysql数据库和语言包 mysql5.sql lang/en.sql 10.创建SVNsvnadmin create d:\svn\test 12.访问127.0.0.1:8080/svnadmin 用户名和密码是admin 进入后生成一个用户赐予用户test数据库的读写权限 11.访问127.0.0.1能看见库
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值