You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Prajakt Deolasee <pd...@in.firstrain.com> on 2002/11/19 08:10:09 UTC

Trap Response while using Apache as Reverse Proxy

I am using Apache as reverse proxy. 

-Prajakt

-----Original Message-----
From: Naaman Musawwir [mailto:naaman@fourthhousesecurity.com]
Sent: Tuesday, November 19, 2002 11:58 AM
To: dev@httpd.apache.org
Subject: Re: WELCOME to dev@httpd.apache.org


> I have a very simple question. I am using the Apache HTTP Server as a
loadbalancer.
> I could get it ruuning and it is smartly acting a loadbalancer. In
addition to this
> I have a requirement, that the response which is send back to the client,
I want to
> trap that response in the loadbalancer and make some changes and then send
it across.
> How do I do it? Can somabody give me some pointers as to in which module
exacly I should
> look in? I thought it should be in mod_proxy or mod_proxy_http are the
module I should be
> looking at. I could see one function in mod_proxy_http module
"ap_proxy_http_process_response"
> but the this function is never called when I run it in debugger. I am
using VC++ 6.0.
> And I am using mod_proxy, mod_rewrite and mod_proxy_http modules.

Functions in mod_proxy_http are only called when you use Apache as
ReverseProxy. If you have not setup it as reverse proxy, it does not go into
this module. You should rather look into mod_proxy function proxy_trans()
where it checks if some proxy is there. Or maybe there is some better
location that I do not know.

>
> Please see if anybody can help.
>
> -Prajakt
>