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

Multiple repositories and Apache

From: Balazs Wellisch <balazs_at_neusolutions.com>
Date: 2004-04-22 01:45:57 CEST

Hello,

I'm brand new to Subversion so please excuse my ignorance if the answer to
this question is trivial, but I haven't been able to find it in either the
book or the mailing lists.

I would like to set up Apache so that my clients can access their
repositories through my website. I want to make sure that users can browse
their own repositories only. They should have absolutely no access to any
other client's project.

For example, I have three users who can access their own client areas on my
server through their username.

Directories:
/home/user1/public_html
/home/user2/public_html
/home/user3/public_html

Sites:
http://www.domain.com/~user1/
http://www.domain.com/~user2/
http://www.domain.com/~user3/

Now, I created a repository for each of them outside their home directory
like so:
/home/svnroot/user1
/home/svnroot/user2
/home/svnroot/user3

So far so good. But, how do I configure Apache so each of these users can
access their repositories? I'd like to give them access like so:

http://www.domain.com/~user1/svn - map to - /home/svnroot/user1
http://www.domain.com/~user2/svn - map to - /home/svnroot/user2
http://www.domain.com/~user3/svn - map to - /home/svnroot/user3

How do I make sure that the repositories are password protected and only the
actual owner can access their own repository?

Using the Apache <Location> directive I could only configure Apache to
access the directories like this:

http://www.domain.com/svnroot/user1
http://www.domain.com/svnroot/user2
http://www.domain.com/svnroot/user3

My config file looks like this:

<Location /svnroot>
   DAV svn
   SVNParentPath /home/svnroot

   # Limit write permission to list of valid users.
   <LimitExcept GET PROPFIND OPTIONS REPORT>
      # Require SSL connection for password protection.
      # SSLRequireSSL

      AuthType Basic
      AuthName "Neu Solutions Repository"
      AuthUserFile /var/www/data/htusers
      Require valid-user
   </LimitExcept>
</Location>

I could live with those URLs but the authentication is global, not
repository specific! Do I have to add a specific <Location> tag for each
repo?

What am I missing here? Please help!

Thank You,
Balazs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Apr 22 01:46:46 2004

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.