Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

mod_perl with a module attached to PostReadRequest

by Yohimbe (Pilgrim)
on Apr 12, 2001 at 00:25 UTC ( [id://71848]=perlquestion: print w/replies, xml ) Need Help??

Yohimbe has asked for the wisdom of the Perl Monks concerning the following question:

We have a fairly extensive site based on mod_perl that works really well, and we are very pleased with it. Now we want to change a different advertising provider, and so, for flexibility's sake we are using mod_adbanners.c which hooks into the PostReadRequest phase, then depends on mod_include to replace environment variables. This works well on .shtml files. Now in our perl code, we'd like to get this same functionality, but the environment vars, though we can see them in the enviroment in mod_include, are not there in mod_cgi or mod_perl. The table they are using is subprocess_env, just like the doc says it should, and we've even hacked it to use the notes table, but to no avail.

Does anyone know how get mod_perl and mod_adbanner to work in the same request? As near as I can see, mod_perl handlers seem exclusive of any other handlers. Am I just compiling it wrong?

We've compiled mod_perl with PerlPostReadRequestHandler Disabled, assuming that if mod_perl was hooking into that phase, that it would be exclusive of the mod_adbanners, which hooks in at that phase. Any suggestions?
--
Jay "Yohimbe" Thorne, alpha geek for UserFriendly

  • Comment on mod_perl with a module attached to PostReadRequest

Replies are listed 'Best First'.
Re: mod_perl with a module attached to PostReadRequest
by Yohimbe (Pilgrim) on Apr 12, 2001 at 12:42 UTC
    Hold the phone folks. Looks like we've got it fixed. We are a little unhappy that the apache doc makes it unclear about return OK; versus return DECLINED;, but that aside, apparently our *not written here* ad_banners code was returning before it had done its work if it detected a file extension not on its list; it seems that positive logic like "Jump out if this is a png, a gif or a jpg" would make more sense. However, thats patched, and installed and working fine. I know grok the ways of apache in much more fullness.
    --
    Jay "Yohimbe" Thorne, alpha geek for UserFriendly

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://71848]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-26 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found