Sander Striker wrote:
> Hi,
>
> I've reproduced the problem reported by Vlad Skvortsov
> locally and I'll describe it once more together with
> some feedback I got.
>
> From the config:
> DocumentRoot /htdocs
>
> <Location /repos>
> DAV svn
> SVNPath /htdocs/repos
> </Location>
>
> In the /htdocs path, there is a directory called repos.
> The directory seems to win over the Location (badness!).
>
> The OPTIONS request to http://example.com/repos will
> indicate a non-dav-enabled resource.
>
> On irc OtherBill stated that mod_dav chose not to override map_to_storage*,
> but Location should still win over Dir. His guess was that mod_davs OPTIONS
> intercept could be borked.
>
>
> Sander
>
> *) I tried to find out how to implement a map_to_storage hook for mod_dav,
> but failed to grasp how it worked (couldn't find any docs or good examples).
>
you need to implement a m-to-s hook for this.
if you don't care about r->filename then maybe something like
static int oid_map_to_storage(request_rec *r)
{
if (!r->proxyreq || strncmp(r->filename, "proxy:", 6) != 0)
return DECLINED;
return OK;
}
obviously, changing the 'if' to meet your needs
..Ian