I would think you're looking for http-server-close which uses keepalive between 
client and HAProxy and opens a new connection for each request to the server, 
in turn allowing you to Layer 7 inspect and modify every request sent to your 
backends. 

Best,
Scott Hulbert

On Jul 11, 2013, at 11:27 AM, Sachin Shetty <sshe...@egnyte.com> wrote:

> 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.
> 
> Thanks
> Sachin

Reply via email to