On Wed, Jun 14, 2017 at 3:06 PM, Christopher Faulet <[email protected]>
wrote:
>
> Ok, If the problem is still there with a stable release, be sure to have
> the "send-proxy" directive on your server line (the one which forwards the
> traffic to haproxy itself). If you have any doubt about your configuration,
> please, share it.
>
>
Below are the snippets on haproxy configuration of reverse proxy and load
balancer:
*On reverse proxy(1.2.3.4):*
<snip>
defaults
log global
mode tcp
option tcplog
listen revproxy :80
server load-balancer 5.6.7.8:80 send-proxy
</snip>
*On load balancer(5.6.7.8):*
<snip>
defaults
log global
option forwardfor
mode http
option httplog
option httpclose
frontend web
bind 5.6.7.8:80
acl revproxy src 1.2.3.4/32
tcp-request connection expect-proxy layer4 if revproxy
default_backend web-backend
backend web-backend
balance leastconn
server node1 11.11.11.11:8080 check
server node2 22.22.22.22:8080 check
</snip>
Let me know if anything seems incorrect here.
Thanks & Regards,
Vijay B