问题
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.confSVNListParentPath 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