Hi Michael,
On Mon, May 18, 2009 at 04:21:14PM +, Michael Tinnion wrote:
>
> Hi,
>
>
>
> I've very limited experience with HAProxy and I'm trying to get the
> ForwardFor option to work but with no joy.
>
>
> I've set the following in my 'listen' section
>
>
>
> option httpclose
> option forwardfor
indeed, that's the correct way to do it.
> and I have set the following in my tomcat (hosted by JBoss) configuration:
>
>
>
> maxKeepAliveRequests="1"
>
>
>
> According to everything I have read this should make HAProxy add the
> X-Forwarded-For header to the requests. Unfortunately I am still not seeing
> this and the client IP address in the request has been set to that of the
> load balancer.
Well, since almost everyone is using it, I don't really believe it does
not work. Are you sure you have "mode http" in your "listen" section ?
Also, how are you checking that the header is correctly added ? Maybe
you just mis-wrote its name where you check it ?
Regards,
Willy