Hello all,

 

I'm relatively new to mod_perl and need to know from all mod_perl
experts here if mod_perl can pass a variable back to apache, or maybe
any of you have a better solution for it.

 

I'm setting up a proxy using Apache 2.2.8 with mod_proxy and I need to
add a custom request header with information that is currently stored in
our MySQL server. I was thinking of using Apache to get user's IP
address and pass it to mod_perl where mod_perl script will query the
database based on that IP address, but I'm not sure how to have mod_perl
send the result back to Apache. 

 

Just a note, I've been testing using mod_header to add a custom request
header and it has been working. I've also tested using
Apache2::Filter::HTTPHeadersFixup and for some reason it works fine if
the destination website doesn't use any kind of cookies. 

 

Any ideas?

 

 

 

Thanks,

  

 

Reply via email to