problem with forwardfor option

From: Dima Brodsky <>
Date: Tue, 20 Jan 2009 15:58:49 -0800


I am running haproxy (HA-Proxy version 2008/12/04) and I am having problems with the forwardfor option. In particular I am seeing about 50% of the requests leave haproxy and hit the apache server behind in without an X-Forwarded-For header. I am not sure whether the problem is a bug or a misconfiguration. Here is my config:


         log   local0
         maxconn 10000
         chroot /usr/share/haproxy
         pidfile /var/run/
         user haproxy
         group haproxy

         mode       http
         retries    3
         clitimeout 150000
         srvtimeout 30000
         contimeout 4000
         option     redispatch

listen  webproxy :80
         mode      http
         log   local0
         reqidel   ^X-Forwarded-For:\
         reqadd    X-Worio-FE:\
         option    forwardfor
         balance   roundrobin
         server    fe1

# HTTP response : 'HTTP/1.0 200 OK'
listen http_health_check

         mode health
         option httpchk

any ideas as to what could be wrong?



"The price of reliability is the pursuit of the utmost simplicity.
It is a price which the very rich find the most hard to pay."
(Sir Antony Hoare, 1980)
Received on 2009/01/21 00:58

This archive was generated by hypermail 2.2.0 : 2009/01/21 01:00 CET