On Jan 5, 2008, at 12:07, Seb wrote:
> I'm trying to set up a repository for a user in a Debian unstable
> system. Apache 2.2.6 already serves users' public directories,
> with the
> following in /etc/apache2/mods-enabled/userdir.conf:
>
> ---<---------------cut here---------------start-------------->---
> <IfModule mod_userdir.c>
> UserDir disabled root
> UserDir "WWW"
>
> <Directory "/home/*/WWW">
> AllowOverride FileInfo AuthConfig Limit
> Options MultiViews Indexes SymLinksIfOwnerMatch
> IncludesNoExec
> </Directory>
> </IfModule>
> ---<---------------cut here---------------end---------------->---
>
> The server also has the dav and dav_svn modules loaded. I would
> like to
> make the repository inaccessible for anything other than subversion
> clients. Does this sound like a reasonable thing to do, any gotchas?
> Or would it be better to put the repository under another directory
> (but
> inside the user's directory), and create a virtual host for it? Any
> suggestions welcome.
A repository should not be stored on disk in a directory that Apache
serves up to the web directly. So, putting a repository in a user's
WWW directory would be a bad idea.
You may be able to put the repository in a different directory in
their home directory, but alias it in to their web space with an
Alias directive or similar. Not sure if that will work. You would
have to do this for each user who wanted a repository.
If you have many users and each user wants one repository, it would
be easy to make a new base URL, like http://www.example.com/usersvn/,
and have under that one repository for each user, accessed with their
username. That would just take a single <Location> directive.
<Location /usersvn>
DAV svn
SVNParentPath /path/to/usersvn
</Location>
The repository would not be in the user's home directory in this
scenario. Maybe that's ok: why did you want it in the user's home
directory?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-05 20:30:17 CET