[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Apache configuration advice

From: Sander Marechal <s.marechal_at_jejik.com>
Date: Fri, 31 Jul 2009 22:57:34 +0200

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=2377556
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-31 23:00:12 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.