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

Re: mod_dav_svn as root

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

On Feb 17, 2006, at 00:59, Ryan Schmidt wrote:

>> The problem is that the document root also needs to contain some
>> regular files (favicon.ico, index.html, svnindex.* etc.), and I can't
>> figure out how to tell Apache to special-case them.
[snip]
>> The actual repo browsing part works fine, but it can't access the
>> stylesheet, and tries to treat favicon.ico as a Subversion repo.
>
> This should do it:
>
> <VirtualHost *:80>
> ServerName svn.example.com
> DocumentRoot /wherever/you/have/your/favicon/svnindex/etc
> <LocationMatch ^/(?!favicon\.ico|index\.html|svnindex\.xsl)>
> DAV svn
> SVNParentPath /var/lib/svn
> SVNIndexXSLT /svnindex.xsl
> <LimitExcept GET PROPFIND OPTIONS REPORT>
> Require valid-user
> </LimitExcept>
> </LocationMatch>
> </VirtualHost>

I think I have to retract this solution... while it works great in
the web browser, it acts peculiar when I try to "svn ls" anything in
my repository from the command line:

$ svn ls http://svn.example.com
svn: PROPFIND request failed on '%5E/(%3F!favicon%5C.ico%7Cindex%
5C.html%7Csvnindex%5C.xsl)/!svn/vcc/default'
svn: PROPFIND of '%5E/(%3F!favicon%5C.ico%7Cindex%5C.html%7Csvnindex%
5C.xsl)/!svn/vcc/default': 400 Bad Request (http://svn.example.com)

I'm using Subversion 1.3.0 and Apache 2.2.0 on Mac OS X 10.4.5 PPC.
I'm fairly baffled by this behavior... I can't conceive of a
situation in which Apache should be revealing the contents of a
LocationMatch directive in response to any kind of request, but it
seems that's exactly what's happening, else the Subversion client
wouldn't know to try that kind of a (ridiculous) URL.

Perhaps the mod_dav_svn module is being told by Apache the contents
of the LocationMatch directive, and is incorrectly believing this is
suitable for including in a URL? I really don't know, I'm just
guessing here. This is beginning to feel buggy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 17 01:58:27 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.