redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
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()

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
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 manipulate

Re: redirecting outside the Content handler

2002-11-14 Thread Brett Sanger
$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. Which is

Stacking ErrorDocuments OR multilevel PerlAccessHandler

2002-11-13 Thread Brett Sanger
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: Location /not-protected PerlHandler Apache::Registry SetHandler perl-script Options +ExecCGI

Attempting persistence

2002-07-26 Thread Brett Sanger
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