in reply to Disabling a C Apache handler with mod_perl

Try this:
$r->set_handlers( PerlHeaderParserHandler => [ \&OK ] );
There's some discussion of it in the docs. If that doesn't work, you can try manipulating the configuration from mod_perl on the fly, i.e. only add the C handler for that phase when you want it, from a perl handler that runs earlier.

Replies are listed 'Best First'.
Re^2: Disabling a C Apache handler with mod_perl
by Mutant (Priest) on May 18, 2007 at 09:03 UTC
    Thanks...

    I don't think set_handlers() (and similar methods) will work here, because they only appear to deal with mod_perl handlers, not C handlers.

    How do I go about modifying the Apache config on the fly? AFAICT, the methods relating to config in the Apache object are read-only.
      You can set C handlers. For example, this tells apache to use the standard file handler:
      $r->handler('default-handler');