Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ModPerl

Can Apache proxy interfere incoming request manipulate it forward and then do the same on response using mod_perl?

 

 

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded


meiry242 at gmail

Nov 13, 2011, 12:17 PM

Post #1 of 2 (358 views)
Permalink
Can Apache proxy interfere incoming request manipulate it forward and then do the same on response using mod_perl?

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
response.
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 .
Thanks


torsten.foertsch at gmx

Nov 13, 2011, 12:31 PM

Post #2 of 2 (337 views)
Permalink
Re: Can Apache proxy interfere incoming request manipulate it forward and then do the same on response using mod_perl? [In reply to]

On Sunday, 13 November 2011 21:17:46 Meir Yanovich wrote:
> 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
> response.
> 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.

http://perl.apache.org/docs/2.0/user/handlers/filters.html

Torsten Förtsch

--
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

ModPerl modperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.