How to configure SVN to show a collection of repositories

家住魔仙堡 提交于 2021-02-11 12:33:50

问题


I want to show a collection of all repositories using mod_authz_svn. When I access it, I get a 403 error (forbidden).

I found out it works fine, when not specifying AuthzSVNAccessFile /etc/apache2/dav_svn.authz, and I am seeing all my repositories, but permissions (of course) don't work anymore.

Is it even possible to show a collection of repositories while using AuthzSVNAccessFile?

This is my dav_svn.authz:

[groups]
admin = me
users = you,others

[/]
* = r
@admin = rw

[repo:/subfolder]
@users = rw

回答1:


This worked for me.

On my Ubuntu 14.04 server, I added the following line to /etc/apache2/mods-enabled/dav_svn.conf
SVNListParentPath on

Be sure to restart Apache:
$ sudo /etc/init.d/apache2 restart




回答2:


I created an index.html showing a list of all of my repo, each name on the list is a name to repository itself.



来源:https://stackoverflow.com/questions/27019532/how-to-configure-svn-to-show-a-collection-of-repositories

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!