I am tring to use nginx and haproxy together. I am doing that because haproxy does not support gzip compression. My aim is that first using nginx for gzip compression than forward it to haproxy for loadbalance. I am Ok until that point. But while doing this, I want to create transparent proxy. Since nginx does not support tproxy, I used X-Forward-For header . Then in haproxy configuration I added
source 0.0.0.0 usesrc hdr_ip(X-Forwarded-For,-1) line but i got 503 error code in my browser. Without that line they works fine but not the way I want.
Thank you for any help, I hope I could explain what I want:)