Using a handler other than 'handler'

Cédric Bertolini <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.