I have setup nginx web server and I want to do the load balancing using haproxy server. I have done these using apache but unable to do it for nginx. Below the apache settings which are working for me and able to perform the load balancing.
frontend http-in acl host_abc hdr_end(host) -i xyz.example.com use_backend abc if host_abc backend abc balance leastconn mode http timeout client 5m timeout server 5m option httpchk option forwardfor server scmauto1 xxx.xxx.xxx.xxx:80 check
The same setting I have done for nginx those are not working.