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 ... ..Ian > -----Original Message----- > From: Kwindla Hultman Kramer [mailto:[EMAIL PROTECTED] > Sent: Mon, May 21, 2001 2:29 PM > To: [EMAIL PROTECTED]; [email protected] > Subject: Re: mod_proxy patches for HTTP Header manipulation > > > > Bill Stoddard writes: > > Hi Kwindla, > > Give me a specific example and I'll see what I can do to > scratch your itch :-) > > Heh, > > How about... > > > RequestHeader set Language fr %{HTTP_HOST} ^fr > > > This is close, in spirit, to one of the things we are currently doing > using our patched 1.3.19 mod_proxy > (http://hub.allafrica.com/tools/apache/mod_proxy/): passing requests > to a mod_perl backend server and telling it what language it should > treat as primary. > > The pieces are: > > 1) 'RequestHeader': modify incoming headers rather than outgoing > > 2) 'set': mod_headers command > > 3) 'Language': the header to set > > 4) 'fr': the value string for the header > > 5) '%{HTTP_HOST}': what to match against (syntax cribbed from > mod_rewrite) > > 6) '^fr': the regular expression -- if it matches, perform the action, > if it doesn't, don't. > > I'm not at all wedded to the proposed syntax, but I do confess that I > don't really like mod_rewrite's RewriteCond/RewriteRule > separation. I'd prefer to have things all in one directive. And, while > mod_rewrite supports (by my count) 36 server variables -- and back > references in the substitutions -- I'd be happy to be a little less > ambitious <laugh>. > > Yours, > Kwindla > > >
