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

Re: Using the SVNParentPath

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2005-12-28 12:01:56 CET

On Dec 25, 2005, at 02:15, Marcos José Setim wrote:

> Lieven give me this tip, for I use the SVNParentPath to create one
> repository to store all my repositories :).

Terminology problem: Using SVNParentPath, you can specify one
*directory* which contains all your repositories. Repositories
themselves cannot contain other repositories.

> I'm trying to configure my apache for this. This is my configuration:
>
> <VirtualHost *:4000>
> ServerAlias /svn

That ServerAlias line doesn't make any sense. ServerAlias is supposed
to specify an alternate hostname by which the virtual host can be
accessed; "/svn" is not a hostname. You're also missing a ServerName
directive, which I thought was mandatory.

> ServerAdmin mjs_ops@gmx.net
> ErrorLog /var/log/apache2/error_svn_log
> CustomLog /var/log/apache2/access_svn_log common
> <Location "/">
> DAV svn
> # Desabilitado
> #SVNPath /usr/local/servidor/svn/
> SVNParentPath /usr/local/servidor/svn/
> AuthType Basic
> AuthName "Quati"
> AuthUserFile /usr/local/servidor/svn/dav_svn.passwd
> <LimitExcept GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </LimitExcept>
> # SSLRequireSSL
> </Location>
> </VirtualHost>
>
> But when I change the SVNPath to SVNParentPath one error is throw.
>
> Forbidden
> You don't have permission to access / on this server.

When you use "SVNPath /usr/local/servidor/svn", then /usr/local/
servidor/svn must be a repository that you created with svnadmin create:

$ svnadmin create /usr/local/servidor/svn

You can then access the repository like this (if your server name is
svn.example.com):

$ svn ls http://svn.example.com:4000/

Conversely, when you use "SVNParentPath /usr/local/servidor/svn",
then /usr/local/servidor/svn must be a directory that contains
repositories that you created with svnadmin create:

$ mkdir /usr/local/servidor/svn
$ cd /usr/local/servidor/svn
$ svnadmin create repo1
$ svnadmin create repo2

You can then access the repositories by putting their names in the URL:

$ svn ls http://svn.example.com:4000/repo1/
$ svn ls http://svn.example.com:4000/repo2/

You cannot get a list of repositories by doing this:

$ svn ls http://svn.example.com:4000/

At least, not until Subversion 1.3.0.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 28 12:05:07 2005

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.