Should I not be able to have a configuration where I serve SVN repos with SVNParentPath
at <Location />
and then override DAV and host normal files using another location <Location /foo>
? I wish to host my XSLT files on the same subdomain and still host repos at root. Of course, if I was to have a repo called foo, that would not be accessible, and that's ok.
<VirtualHost *:80>
...
#Host XSLT files here
<Location /foo>
DAV Off
</Location>
#Host my repos relative to root, such as /my_repo/
<Location />
DAV svn
SVNParentPath "myrepos"
SVNListParentPath on
SVNIndexXSLT "/foo/my.xsl"
...
</Location>
</VirtualHost>
But DAV SVN still looks for a repo:
<?xml version="1.0" encoding="utf-8"?>
<D:error xmlns:D="DAV:" xmlns:m="http://apache.org/dav/xmlns" xmlns:C="svn:">
<C:error/>
<m:human-readable errcode="720003">
Could not open the requested SVN filesystem
</m:human-readable>
</D:error>
Edit:
I read up on mod rewrite a bit and so far as I understand it the target path of a rewrite rule can only be local unless you use redirect [R]
. This for example works, it creates a redirect (HTTP 302):
RewriteEngine On
RewriteRule ^/foo/(.*)$ http://someotherhost/foo/$1 [R]
However, it still doesn't work with SVNIndexXSLT
. Probably because it doesn't follow redirects.