defaults log global mode http option httplog timeout connect 5s timeout client 30s timeout server 30s frontend fe_http bind :80 acl is_api path -i /api acl is_api path_beg -i /api/ acl is_app path -i /app acl is_app path_beg -i /app/ use_backend be_api if is_api use_backend be_app if is_app default_backend be_default backend be_api mode http server api1 10.0.20.11:8080 check backend be_app mode http server app1 10.0.20.12:8080 check backend be_default mode http server web1 10.0.20.13:8080 check