Perl Monk, Perl Meditation | |
PerlMonks |
Disabling a C Apache handler with mod_perlby Mutant (Priest) |
on May 17, 2007 at 16:18 UTC ( [id://616043]=perlquestion: print w/replies, xml ) | Need Help?? |
Mutant has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have an Apache 1.3 setup where a C module does some stuff during the HeaderParser phase. I'd like to conditionally disable this. My first thought was to write a mod_perl handler for the HeaderParser phase, that runs before the C handler, and if it should be disabled, returns 'OK' from the handler, meaning no other handlers execute during this phase. However, it seems this only works in certain phases, not including HeaderParser (all registered handlers get executed, regardless of what they return). Is there anyway I can prevent the C handler from running? After my handler has disabled the C handler, I need Apache to run the rest of the request process as per normal (including any other custom handlers that may be defined). I can't modify the C handler (it's 3rd party code). Thanks in advance.
Back to
Seekers of Perl Wisdom
|
|