Re: Empty IP when forwardfor enabled

From: Rainer Sabelka <sabelka#iue.tuwien.ac.at>
Date: Mon, 19 Jan 2009 08:28:54 +0100


On Monday 19 January 2009 03:19:51 Rodrigo wrote:
> 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?

You probably need "option httpclose".

-Rainer Received on 2009/01/19 08:28

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