haproxy 서버 뒤에 ngnix를 추가하는 방법

haproxy 서버 뒤에 ngnix를 추가하는 방법

nginx 웹 서버를 설정했으며 로드 밸런싱을 위해 haproxy 서버를 사용하고 싶습니다. Apache를 사용하여 이 작업을 수행했지만 nginx에서는 수행할 수 없습니다. 다음은 나에게 도움이 되었고 로드 밸런싱을 수행할 수 있었던 Apache 설정입니다.

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

nginx에 대해 동일한 설정이 있지만 작동하지 않습니다.

관련 정보