Empty IP when forwardfor enabled

From: Rodrigo <elrodri#gmail.com>
Date: Mon, 19 Jan 2009 03:19:51 +0100


Hi,

I've setup two frontends balanced with Haproxy 1.3.15.7 (excellent software) in another server:

       Load balancer
              / \
            /    \
           /      \

Frontend 1 Frontend 2

I have enabled "option forwardfor". I have set LogFormat in Apache configuration file as follows:

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

but many times the IP field appears empty. I've read on this mailling list that it has something to do with KeepAliveTimeout on Apache. I rised up it from 6 to 15, but no luck.

How could I fix this?

Thank you Received on 2009/01/19 03:19

This archive was generated by hypermail 2.2.0 : 2009/01/19 03:30 CET