Hi all,

I'm having some problems when I have with multiple PerlTransHandlers
defined.

What is happening is even if one handler returns OK, the other ones are
still invoked. Also, the result changes depending on the order in which
the handlers are set. This should not have any impact since each handler
uses if ($uri =~ /^.../){...} on distinct paths, so therefore only 1
handler actually does someting per URI.

I was able to get around this by creating a meta handler as such:

        PerlTransHandler        Apache::ASP::MetaTransHandler
        PerlSetVar              MetaTransHandlerMap     "\
                /secure/        => Apache::ASP::Cascade, \
                /reports/       => Apache::ASP::ReportProxy, \
                /rimages/       => Apache::ASP::ReportProxy"

that dispatches the request to the proper handler, but this still
bothers me since the documentation and book state that what I was
originally tring to do should work ok.

Has anyone succesfully used multiple PerlTransHandlers?
Is there anyway to "localize" (i.e. <Location>) them so that they are
not always invoked?

Anyways here's my configuration:
  mod_perl-1.26-5
  apache-1.3.27-3
  This is perl, v5.6.1 built for i386-linux
  Red Hat Linux release 7.3 (Valhalla)


Thanks,
-- 
=====================
Patrick LeBoutillier
Laval, Québec, Canada


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to