Newbie as well, found a related post but still couldn’t get past the health checks failing giving me the “no server available” error when doing my reload of the .cfg file.
#---------------------------------------------------------------------
main frontend which forwards to the backends
#---------------------------------------------------------------------
frontend be_aeo
mode http
bind 10.10.111.10:80
bind 10.10.111.10:443
default_backend be_aeo
backend be_aeo
mode http
balance roundrobin
option tcp-check
option forwardfor
server srv1 10.101.0.35 port 80 check
server srv2 10.101.0.34 port 80 check
direct HTTP access
# bind *:443 ssl ....
#---------------------------------------------------------------------
backend dedicated to serve the statistics page
#---------------------------------------------------------------------
backend be_stats
stats uri /hapee-stats
#---------------------------------------------------------------------
static backend for serving up images, stylesheets and such
#---------------------------------------------------------------------
backend be_static
balance roundrobin
server static1 127.0.0.1:4331 check
server static2 127.0.0.1:4331 check
#---------------------------------------------------------------------
round robin balancing between the various backends
#---------------------------------------------------------------------
backend be_app
balance roundrobin
cookie SERVERID insert indirect nocache
server app1 127.0.0.1:5001 cookie a1 check
server app2 127.0.0.1:5002 cookie a2 check
1 post - 1 participant