www-modproxy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Holsman <I...@cnet.com>
Subject RE: [PATCH] Reverse Proxy HTTP Hooks
Date Wed, 16 May 2001 18:12:59 GMT
the code puts 2 hooks into the http_proxy code.
one before the actual proxy is called
the other after the response is recieved.

the reason we need them:
we plan on sending notes set in the subprocess_env table (via mod_include)
to the app-server which meet a certain criteria (eg starting with CNET-) these
would be changed to header_in with the format (X-CNET-) which the appserver will read
and respond to.

there was some talk over here that the app-server will send us some response headers
which will need to be parsed in later parts of the html file, so the 'post' hook would
be responsible for putting them back in the subprocess_env notes table.

I can post the module which does this work too if you would like. It is similiar to what 
Kwindala did on 1.3.

I know I could rewrite this as a filter, but I don't know how to 'add' the filters to the

proxy request as the syntax is too limiting.

..Ian

> -----Original Message-----
> From: Graham Leggett [mailto:minfrin@sharp.fm]
> Sent: Wednesday, May 16, 2001 8:50 AM
> To: modproxy-dev@apache.org
> Subject: Re: [PATCH] Reverse Proxy HTTP Hooks
> 
> 
> Ian Holsman wrote:
> 
> > I know you guys were working on a 'filter' method of doing this,
> > but I needed  a method quickly so I got this hook method working.
> > 
> > the main reason me doing this via a hook instead of a 
> filter, is that
> > I couldn't see an 'easy' way to tell apache to set filters 
> on a Reverse
> > Proxy call.
> 
> What does this code do?
> 
> Regards,
> Graham  
> -- 
> -----------------------------------------
> minfrin@sharp.fm		"There's a moon
> 					over Bourbon Street
> 						tonight..."
> 

Mime
View raw message