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

Re: Snow Leopard 10.6.7 showing wrong version on http://myserver/svn page

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Mon, 27 Jun 2011 20:58:00 -0500

On Jun 27, 2011, at 11:42, davmar wrote:

> Does the client need to have apache2 (MacPorts) running also?

No, Apache is a server program. The server runs the server (Apache with mod_dav_svn in your case), the client runs the client (the Subversion command line client, or TortoiseSVN, or Versions, or any other).

> davmar wrote:
>>

>> MightyMouse:supository davidsantoyo$ svn checkout
>> http://myserver.local//usr/local/svn_repository/trunk
>> svn: OPTIONS of
>> 'http://rocky.icovfx.local/usr/local/svn_repository/trunk': 200 OK
>> (http://rocky.icovfx.local)

Why is "/usr/local" part of your URL? That implies you're serving up the entirety of your hard drive with Apache, which you probably don't want to be doing.

Decide whether you want to serve a single repository, or a collection of repositories all living in a single directory. If one repository, use the SVNPath directive, pointed at that single repository. If multiple repositories, use the SVNParentPath directive, pointed at the repositories' parent directory.

Decide where in your web server's URL space you want the repository(ies) to be accessed from. Previously (and in the subject of this thread) you had suggested "/svn" which seems reasonable. So if you want to serve a single repository you would do this on the command line to create the repository:

svnadmin create /usr/local/svn_repository

And then in your httpd.conf you would add:

<Location /svn>
        DAV svn
        SVNPath /usr/local/svn_repository/
</Location>

(probably inside a specific VirtualHost).

The URL to the repository would then be:

http://localhost/svn

(replace "localhost" with whatever name your VirtualHost is configured for)

Or if you want a collection of repositories, you could do:

mkdir /usr/local/svn_repositories
svnadmin create /usr/local/svn_repositories/repo1
svnadmin create /usr/local/svn_repositories/repo2
svnadmin create /usr/local/svn_repositories/repo3

And in httpd.conf:

<Location /svn>
        DAV svn
        SVNParentPath /usr/local/svn_repositories/
</Location>

The URL of the repositories would then be:

http://localhost/svn/repo1
http://localhost/svn/repo2
http://localhost/svn/repo3
Received on 2011-06-28 03:58:37 CEST

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.