HAProxy community

Nginx before HAProxy - RPAF


#1

Hello,
I have nginx before haproxy on my Load Balancer. Request is traveling in to haproxy with “proxy_pass” directive. I set a header “X-Forwarded-For” and now, I need to log haproxy requests to logstash. But in log I get local IP adress of HAproxy. Is possible to set something like RPAF in haproxy?

Thank you !


#2

Should be something like:

http-request set-src hdr(x-forwarded-for)


#3

Awesome ! Thank you.