[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 and Apache <Location> directive

From: Ryan Schmidt <subversion-2011a_at_ryandesign.com>
Date: Sat, 5 Nov 2011 02:08:26 -0500

On Nov 4, 2011, at 13:50, Michaël Bruneel wrote:

> It seems that the dav_svn Apache module is not compatible with
> <Location> directive when used with regular expression containing
> negative part. For example, given that configuration:
>
> <Location ~ "^/(?!viewvc)" >
> DAV svn
> SVNPath /srv/svnroot/myproject
> </Location>
>
> ScriptAlias /viewvc "/usr/lib/cgi-bin/viewvc.cgi"
>
> the content of the <title> tag in the HTML response becomes:
>
> <title>(?!viewvc) - Revision 1848: /</title>
>
> instead of:
>
> <title>/ - Revision 1848: /</title>
>
> and we get this error :
>
> svn: Server sent unexpected return value (400 Bad Request) in response
> to PROPFIND request for '%5E/(%3F!viewvc)/!svn/vcc/default'

That sounds pretty much like what I found years ago. I gave up on trying to be clever with Location directives.

> The repository root contains trunk/, branches/ and tags/ directories
> and a viewvc/ directory will never be versioned. The viewvc URL is used
> to browse the repository through ViewVC interface.
>
> Is it the really expected behaviour? Or is there something wrong
> somewhere else?

I suggest you do "Location /svn" for your repository, and "Location /viewvc" for your viewvc installation. Just keep them in totally separate URL spaces.
Received on 2011-11-05 08:09:35 CET

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.