Hi there,

I browsed the list to look for an answer to this question, without success, so I hope you can help me on this.

I want to use Haproxy in front of Tomcat. I need to get the client's IP, so I logically activated 'option forwardfor', which works fine.

I also want server-side keepalive. And this is when I discovered that Haproxy sends the x-forwarded-for header with the first request of the keep-alived connection only. It seems that tomcat 6.0.32 (that we use) cannot remember the x-forwarded-for value across multiple requests. So we would need to send the header with every request.

My first question is: does anybody see anything wrong with those assumptions ?

Then: is there a way to have x-forwarded-for added to each request without giving up on server-side keep alive ?


Thanks,
Julien

Reply via email to