haproxyサーバーの背後にngnixを追加する方法

haproxyサーバーの背後にngnixを追加する方法

私はnginx Webサーバーを設定しましたが、ロードバランシングに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に対して同じ設定がありますが、動作しません。

ベストアンサー1

おすすめ記事