httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: mod_proxy patches for HTTP Header manipulation
Date Mon, 21 May 2001 22:51:56 GMT
Ian Holsman wrote:

> what about the case where you need to change the header based on a environment
> variable set in mod_include before the request to the proxy.
> 
> eg..
> 
> ..
> <!--#set foo=bar-->
> <!--#include virtual file="/proxycall" -->
> <!--#set foo=bar2-->
> <!--#include virtual file="/proxycall" -->
> ..
> 
> can this kind of thing be done via input-filters/mod_header??
> I put a patch in for a specific hook in mod_proxy to do something like
> this, but it was mentioned that input filters were a better way to go,
> but based on other discussions it seems like input filters won't be able
> to handle this ...

AFAIK mod_header applies to subrequests too, which means that yes you
can do this. If you can't, then it's a bug.

Just make sure that RequestHeader or Header is put into context using
<Location /proxycall/>.

Regards,
Graham  
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."
Mime
View raw message