How to configure HAProxy to send GET and POST HTTP requests to two different application servers
I am using RESTful architecture. I have two application servers running. One should serve only GET request and other should serve only POST request. I want to configure HAProxy to loadbalance the requests depending upon the above condition. Please help me Here's a partial HAProxy configuration which can do this for you: frontend webserver bind :80 mode http acl is_post method POST use_backend post_app if is_post default_backend get_app backend post_app mode http option forwardfor balance source option httpclose option httpchk HEAD / HTTP/1.0 server post_app1 172.16.0.11:80 weight 1 check inter