On Thu, 16 Dec 1999, you wrote:
> Waa!!! So far nobody who answered even doubted that
> it should be possible to have more then one 
> PerlTransHandler. The "Eagle" book also says
> that it should be possible. People suggested that
> either my mod_perl built with wrong flags or I messed
> up return codes OK/DECLINED (which I didn't!).
> 
> Is what you saying documented somewhere?!!!

Here's a simple test I just ran (with the CVS version of mod_perl, but 1.21
should work as well, although I haven't tested it):

Foo.pm:
        package Foo;
        sub handler
        {
                $r = shift;
                $r->warn("Foo translating " . $r->uri);
                return DECLINED;
        }
        1;

Bar.pm:
        package Bar;
        sub handler
        {
                $r = shift;
                $r->warn("Bar translating " . $r->uri);
                return DECLINED;
        }
        1;

in httpd.conf:
        PerlTransHandler +Foo
        PerlTransHandler +Bar

after accessing the server, in error.log:
        [Fri Dec 17 00:44:22 1999] [warn] Foo translating /
        [Fri Dec 17 00:44:22 1999] [warn] Bar translating /

So yes it's possible to have several TransHandlers.

--
Eric Cholet

Reply via email to