frontend http-in mode http bind FRONTENDIP:80 default_backend nginx_server_1 acl nginx_1 hdr_end(host) -i www.xyz.com acl nginx_2 hdr_end(host) -i abc.xyz.com acl nginx_path path_beg /abc/ use_backend nginx_server_1 if nginx_1 !nginx_path backend nginx_server_1 server nginx1 10.0.0.1:8080 maxconn 1000 backend nginx_server_2 server nginx2 10.0.0.2:8080 maxconn 1000