Hello,

I'm redirecting to a mod_perl handler with ErrorDocument:

  Order allow,deny
  ErrorDocument 403 /login
  <Location "/login">
    Order deny,allow
    SetHandler modperl
    PerlResponseHandler My::Handler
  </Location>

On an unauthorized request, Apache makes a subrequest served by
My::Handler::handler().  So far, so good.

I need the original URI in the handler.  $r->uri contains "/login",
so does $r->unparsed_uri -- useless.  

Is there any smarter way than this hack?

  my $request_uri = (split /\s/, $r->the_request)[1];

-- 
Radosław Zieliński <[EMAIL PROTECTED]>

Attachment: pgpOm1yPYq4VB.pgp
Description: PGP signature

Reply via email to