Hi, No, there is no way for this for now. If you need to know client IP, you can switch to Transparent proxy or to the Proxy protocol (but this option may ask you to rewrite some code on your server).
Baptiste On Thu, May 9, 2013 at 4:10 PM, <[email protected]> wrote: > Hi All, > > I have situation where setting option http-server-close is simply not an > option: both client and server connection must be kept alive. > > On the other hand, I need to know the client IP, so I have added option > forwardfor > > But, since both ends are kept alive, only the first request is processed (and > append the X-Forwarded-For header), all others are just passed to my server, > and there I can not see the X-Forwarded-For header on subsequent requests > (including one loading script, the one that actually matters to me). Yes, > setting http-server-close will ensure my server sees X-Forwarded-For for each > call, but again, having server connections closed for each response is not an > option in my case (too expensive). > > Is there a way to keep both ends alive, and to make HAProxy process EACH > request (and append X-Forwarded-For if so configured) during alive TCP > connection? > > --- > posted at http://www.serverphorums.com > http://www.serverphorums.com/read.php?10,703863,703863#msg-703863 >

