Hi,

I am running haproxy (HA-Proxy version 1.3.15.7 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:

global
        log 127.0.0.1   local0
        maxconn 10000
        chroot /usr/share/haproxy
        pidfile /var/run/haproxy.pid
        user haproxy
        group haproxy
        daemon

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

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

# HTTP response : 'HTTP/1.0 200 OK'
listen http_health_check 0.0.0.0:60001
        mode health
        option httpchk


any ideas as to what could be wrong?

Thanks!
ttyl
Dima

--
[email protected]                               http://www.cs.ubc.ca/~dima

"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)









Reply via email to