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

Re: mod_dav_svn and mod_userdir

From: Ryan Schmidt <subversion-2008a_at_ryandesign.com>
Date: Fri, 29 Feb 2008 14:24:31 -0600

On Feb 29, 2008, at 06:42, Bernhard Fischer wrote:

> I'm running an apache web server with serveral 100 users having
> their web
> directory located in /home/*/public_html and I provide svn
> repositories to
> them which they can access by WebDav.
> The repository is a central one which has "sub-repositories", one
> for each
> user. Dav acces is done using the URL https://..../svn/<username>.

That doesn't really make sense... there is no such thing as a
"subrepository". Perhaps you have a normal filesystem directory, and
it contains a number of repositories. But repositories cannot contain
other repositories.

> What I would like to do is to provide the repositories through
> mod_userdir.
> More exactly this meens that every user should have his own repository
> located within his home directory (e.g. /home/*/SVN) and should be
> accesible
> by https://...../~<username>/SVN) instead of having one central
> repository.
>
> Does anybody know how this could be done?
> I tried some configuration variants but I figured out that the SVNPath
> configuration directive does not support the "*" like e.g. the
> Directory
> directive.

I tried this a couple years ago and ran into insurmountable
obstacles. Not sure if anything has changed since then.

> What I could do is to make an entry for each single user in the
> httpd.conf but
> as there are several 100 users this is not really an option.

I would suggest you don't store the repositories themselves in the
user's home directory. Instead, store them in a single central
directory. Serve them using SVNParentPath. You can put symlinks of
the repository into each user's home directory somewhere if you want
users to have easy access to them.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-02-29 21:26:30 CET

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.