> > $r->set_handlers('PerlHandler",\&My::Package::handler);
>
> set_handlers() should work. keep in mind that it's current not
> possible (IIRC) to set_handler() for the current phase. so, for the
> PerlHandler you'd want to do it from someplace else, like your
> PerlAccessHandler or something.
"Narins, Josh" wrote:
>
> I think I know this one.
>
> #you might want to do this line, for edification if nothing else
> my $list_ref = $r->get_handlers("PerlHandler");
>
> $r->set_handlers('PerlHandler",\&My::Package::handler);
Excellent! Thanks. One associated question: Is it possible to
I have a few AccessHandlers that I'd like to redirect the user to the
correct page to get access if they don't have it. I tried
ErrorDocuments, but I have multiple layers of authentication, and
ErrorDocuments won't cascade. So I'm looking at switching the
ContentHandler. internal_redirect() won'
Once upon a time there was a project that required a PerlAccessHandler
and form-based login. This project lived in the land of mod_perl, so it
lived a happy life, with a setup something like:
PerlHandler Apache::Registry
SetHandler perl-script
Options +ExecCGI
PerlAccessHandler My::Enf
I'm looking at converting a large CGI installation over to mod_perl.
The code is clean, so moving it to Apache::Registry isn't causing any
problems, but I'd like to get the most bang out of the conversion that I
can.
Currently the code is a set of scripts that all call modules that are
subclasse