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.