torsten.foertsch at gmx
Nov 13, 2011, 12:31 PM
Post #2 of 2
On Sunday, 13 November 2011 21:17:46 Meir Yanovich wrote:
Re: Can Apache proxy interfere incoming request manipulate it forward and then do the same on response using mod_perl?
[In reply to]
> I have Apache that used as proxy server that forward incoming requests
> to application server, based on Some rules , all working fine .
> Now this incoming request , needs to be changed before they reaching
> to the application server And when they returning back from the
> application server the massage needs to be changed again and send the
> The manipulation in the proxy server done with perl script , so
> mod_perl needs to be installed .
> But my concern is how can it be done if it can be done .
If your proxy runs httpd 2.x with modperl 2.x then yes, it can manipulate
both the request stream from the client to the backend and the response
stream from the backend to the client.
The former is done by a PerlInputFilterHandler the latter by a
PerlOutputFilterHandler. Those are up to you to conceive.
Need professional modperl support? Hire me! (http://foertsch.name)
Like fantasy? http://kabatinte.net