Hi ?t????????. ?t???????? have written on Wed, 17 May 2017 12:13:48 +0800:
> ??1?? > backend web > ption httpchk /test.html ^missing o > 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 ^missing o > 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. What's the output of the error? What's the output of haproxy -vv? > 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 > > ------------------

