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

Re: configure Virtual host

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-27 17:56:30 CET

On Jan 27, 2006, at 17:31, Helio MC Pereira wrote:

> I'm trying to configure apache with a virtual host for multiple
> subversion repositorys. Each repository is under /home/user/svn
> directory like:
> /home/user1/snv
> /home/user2/snv
> ...
> Each user need to mantain the svn repository.
> How do I configure virtual host for all to points something like
> http://projects.server.test/user/svn ???

On Jan 27, 2006, at 17:37, Helio MC Pereira wrote:

> how can I configure vhost to assume <USER> for each request?
> ex.:
> http://projects.server.test/user1/svn -> <USER> == user1
> http://projects.server.test/user2/svn -> <USER> == user2

I don't think that's possible. We tried something similar awhile ago
and couldn't make it work.

I think the best you can do is put all the user repositories in one
central directory:


What you mean by "maintain" will dictate how you need to set the
permissions of these repositories. If each user merely needs to be
able to make changes in the config and hooks directories, then chown/
chmod those specific directories so each user can make changes there.
The other directories in each repository need to be writable by
Apache, so probably chown/chmod them so only Apache can write there.

Put symlinks of each user's repository in their home directory if you
like so they can get to them more easily.

In the Apache configuration, use "SVNParentPath /repositories"
instead of "SVNPath".

The repositories would then be accessed, given the rest of the
directives you showed, via http://pojects.server.test/svn/user1 and

Figuring out the Apache access permissions such that each user will
be able to commit to their repository but not others' repositories is
left as an exercise for someone else.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jan 27 18:08:11 2006

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.