??1??
backend web
ption      httpchk /test.html
http-check expect string Test
balance     roundrobin
server my1    192.168.37.135:80 check
server my2    192.168.37.134:80 check

??2??
backend web
ption      httpchk /test.html
http-check expect rstatus ^2
balance     roundrobin
server my1    192.168.37.135:80 check
server my2    192.168.37.134:80 check

??3??
backend web
#ption      httpchk /test.html
http-check expect string Test
balance     roundrobin
server my1    192.168.37.135:80 check
server my2    192.168.37.134:80 check


     The first configuration error.
     The second, the third configuration is normal.

     I suspect that this is a program BUG.
     Expect to get your reply




This is all the configuration
###############################---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------
frontend  main *:80


    default_backend             web


#    stats auth  : no authenticat
#    stats scope : no restriction
#---------------------------------------------------------------------
# static backend for serving up images, stylesheets and such
#---------------------------------------------------------------------
backend web
    option      httpchk /test.html
    http-check expect rstatus ^2


    balance     roundrobin
    server my1    192.168.37.135:80 check
    server my2    192.168.37.134:80 check


listen stats
        bind :9099
        stats enable
        stats uri /stats
        stats realm HAPorxy\ Stats\ Page
        stats auth admin:admin
        stats admin if TRUE
        stats hide-version
##########################################
[root@localhost ~]# curl 192.168.37.135/test.html
Test Page







------------------

Reply via email to