haproxy url load balancing (url 負載均衡)

frontend http-inweb

    bind 10.254.23.225:80cookie

    acl has_special_uri path_beg /specialfrontend

    use_backend special_server if has_special_urispa

    default_backend defaultserver

backend defaultci

    balance roundrobinio

    cookie SERVERID insertbind

    option httpchk HEAD /check.txt HTTP/1.0co

    option httpclosepath

    option forwardfor

    server webA 10.254.23.4:80 cookie webA check

    server webB 10.248.23.128:80 cookie webB check


backend special_server

    balance roundrobin

    cookie SERVERID insert

    option httpchk HEAD /check.txt HTTP/1.0

    option httpclose

    option forwardfor

    server webC 10.0.0.1:80 cookie webC check

相關文章
相關標籤/搜索