Thanks Emeric and Scott, I will try this out.

Thanks
Sachin

On 7/12/13 12:27 AM, "Emeric BRUN" <eb...@exceliance.fr> wrote:

> 
> 
>----------------original message-----------------
>De: "Sachin Shetty" sshe...@egnyte.com
>A: haproxy@formilux.org
>Date: Thu, 11 Jul 2013 23:57:40 +0530
>-------------------------------------------------
> 
> 
>> Hi,
>> 
>> We need to add a header to every request that is being routed via
>>haproxy,
>> we were able to achieve with a simple add header instruction:
>> 
>> reqadd X-Haproxy-L1:\ true
>> 
>> However it seems haproxy only adds this request to the first request in
>>a
>> keep alive connection stream and this header is missing when browser
>reuses
>> the connection. We could work around this behavior using httpclose,
>however
>> this would disable keep alive I guess.
>> 
>> Is there a way to support keep alive and yet add the headers (or apply
>some
>> rewrite rules) to all the request effectively terminating the keep alive
>at
>> haproxy like Apache. We also need to get some rewrite rules going and
>would
>> need haproxy to apply the rules in every request as well.
>> 
>
>use option http-server-close
>
>Regards,
>Emeric
>
>



Reply via email to