Rederecting DAV requests - on: Apache(2.0)/ mod_perl(2.0)/ perl(5.8)/ webDAV

From: Mike Burton (ngroup_at_mycosystems.co.uk)
Date: 04/25/04


Date: 25 Apr 2004 10:05:30 -0700

My mod_perl handler redirects DAV requests.
Each user logs on then points their DAV client to <srv>/dav/home
>From the login info, the handler translates this to /home/www/userXYZ
and does an internal redirect to it.

1. First step partially works, I can redirect to <srv>/testuser/,
which is an Alias defined in httpd.conf as pointing to
/home/www/userXYZ.
Problem: Dav client only sees folders, not files, and the folders
recurse.

2. Second step is more tricky, I cant seem to redirect to a sub-path
of an alias.
I need to do this, cant have one alias per user as there would be
40,000 Aliases!
I have an alias /dav/ which points to /home/www.
But when I try to redirect to /dav/userXYZ the DAV client complains
that
"Server doesnt support WebDAV at resource /dav/home

Same thing happens when I point DavCli directly at /dav/userXYZ,
the DAV client complains that "Server doesnt support WebDAV at
resource /dav/userXYZ.
It seems to like Alias's but not their sub-paths.

3. Eventually I want to redirect into another path that the handler
handles,
so that I can reject invalid requests.
This means 2 handlers for the same URI: my .pm and mod_dav.
How can I "handle" a request then (optionally) pass it on to mod_dav?

Thanks in advance, I'd much appreciate any comments.

Mike Burton



Relevant Pages

  • Re: .NET code for creating IIS mapping
    ... Only in this case this handler works. ... requests to *.txt files by default dose not redirected to any ISAPI ... To redirect requests to txt file to ... assosiate txt file extension with ASP.NET ISAPI to deny ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Danger to having Port 80 open on hardware firewall
    ... I was simply replying to the issue of getting http://fqdn/remote to redirect ... > port 80, consider upgrading to ISA. ... > at ISA and never touches the webserver. ... > requests never go any further. ...
    (microsoft.public.windows.server.sbs)
  • Re: Wierd 301 Moved Loop in OWA
    ... appears to be some sort of endless redirect loop. ... The server responds with a 301 ... a non standard port for regular HTTP and then the usual 443 port for ... redirects all requests to HTTPS. ...
    (microsoft.public.exchange.admin)
  • Re: [Full-disclosure] Google / GMail bug, all accounts vulnerable
    ... I guess I am not understanding why this is considered to be a big CSRF ... Do you consider doing a redirect injecting? ... influence a large number of users to make requests which disrupt, ... Since the favicon.ico object, for some reason, influences the account ...
    (Full-Disclosure)
  • Re: Unable to get to RWW or OWA
    ... though requests to the base folder are redirected to 443 specific ... requests to http://site/folder may still be accepted without SSL. ... If you'd like all custom folders to redirect and/or require SSL also, then do so, or restrict them to internal IPs/Subnets only. ...
    (microsoft.public.windows.server.sbs)