perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Bertolini <bertolini.ced...@gmail.com>
Subject Using a handler other than 'handler'
Date Mon, 27 Sep 2010 08:20:51 GMT
Hello,

I apologize for such a trivial question, but I'd like to use a function
other than "handler" as a perl handler. According to the doc, it was
possible in mod_perl 1, but I can't manage to get it to work under mod_perl
2.


Here is an example of my code:

file Authen.pm

> sub handler {
>   // regular handling
> }
>
> sub special {
>   // special case
> }

file httpd.conf

> <Location /perl/>
>    PerlAuthenHandler  /lib/Authen
> </Location>

> <Location /perl/special-case/>
>   # I want to override the regular case by using "special" instead of
"handler" in /lib/Authen.pm
> </Location>

Thanks in advance,
Cédric Bertolini

Mime
View raw message