You can refer to specific repositories as such:
[super-secret-repository:/]
* =
@admins = rw
If you don't use <repository name>:<path> that applies to all repositories.
This lets you control it.
Jason Malinowski
> -----Original Message-----
> From: Sander Marechal [mailto:s.marechal_at_jejik.com]
> Sent: Friday, July 31, 2009 1:58 PM
> To: users_at_subversion.tigris.org
> Subject: Apache configuration advice
>
> Hi all,
>
> I need some advice on serving Subversion through Apache on Linux.
>
> At the moment I have quite a few svn repositories. They all live under
> the same directory in /var/lib/svn. Until now, all these repositories
> were publicly readable so I could simply configure Apache as shown below.
>
> But now I have one repository under /var/lib/svn that should not be
> publicly accessible. How can I configure that? Or should I move that
> repository away from /var/lib/svn?
>
> I tried adding an extra <Location "/my-private-repository"> in the
> Apache configuration with an SVNPath in it that required a valid user,
> but that doesn't work :-(
>
> I have quite a few repositories and I don't want to list them all
> separately in the Apache configuration if I don't have to. They are all
> the same, except for the one repository that should not be publicly
> readable.
>
> Any help is appreciated, Thanks in advance. My current configuration
> files are below.
>
> === Apache configuration ===
>
> <VirtualHost *:443>
>
> ServerName svn.example.org:443
>
> # SSL configuration snipped
>
> LogLevel debug
> ErrorLog /var/log/apache2/svn-error.log
> CustomLog /var/log/apache2/svn-access.log combined
> ServerSignature On
>
> <Location "/">
> DAV svn
> SVNParentPath /var/lib/svn
> SVNListParentPath On
>
> AuthType Basic
> AuthName "My subversion repositories"
> AuthUserFile /etc/subversion/svn-users
> AuthzSVNAccessFile /etc/subversion/svn-groups
>
> <LimitExcept GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </LimitExcept>
> </Location>
>
> </VirtualHost>
>
> === svn-groups configuration ===
>
> [groups]
> admins = john, jane
> users = paul, pauline
>
> [/]
> * = r
> @admins = rw
> @users = rw
>
>
> --
> Sander Marechal
>
> ------------------------------------------------------
>
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=23
7
> 7556
>
> To unsubscribe from this discussion, e-mail: [users-
> unsubscribe_at_subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377653
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-01 04:21:28 CEST