HAProxy community

Backend down show Maintace

I use HAProxy with pfSense. If a backend is down, I get a maintance site. But if only one URL of the backend is offline, the next client will simply be displayed in the backend. How can I create an offline site instead?

Share the configuration, the logs and the output of haproxy -vv please.

Also elaborate what one URL of the backend is offline means exactly. Does it respond with a 5xx error? Does it timeout?

Automaticaly generated, dont edit manually.

Generated on: 2019-06-06 08:53

global
maxconn 1000
stats socket /tmp/haproxy.socket level admin
uid 80
gid 80
nbproc 1
hard-stop-after 15m
chroot /tmp/haproxy_chroot
daemon
tune.ssl.default-dh-param 2048
log-send-hostname ovs01
server-state-file /tmp/haproxy_server_state

listen HAProxyLocalStats
bind 127.0.0.1:2200 name localstats
mode http
stats enable
stats admin if TRUE
stats show-legends
stats uri /haproxy/haproxy_stats.php?haproxystats=1
timeout client 5000
timeout connect 5000
timeout server 5000

frontend acme-reverseProxy-merged
bind XXX.XXX.XXX.XXX:80 name XXX.XXX.XXX.XXX:80
mode http
log global
option http-keep-alive
timeout client 30000
errorfile 503 /var/etc/haproxy/errorfile_acme-reverseProxy_503_MAINTENANCE
acl test.test.de var(txn.txnhost) -m beg -i test
http-request set-var(txn.txnpath) path
http-request set-var(txn.txnhost) hdr(host)
use_backend test.test.de_ipvANY if test.test.de

backend test.test.de_ipvANY
mode http
id 110
log global
timeout connect 30000
timeout server 30000
retries 3
acl client1 var(txn.txnhost) -m str -i test1.test.de
acl client2 var(txn.txnhost) -m str -i test2.test.de
acl client3 var(txn.txnhost) -m str -i test3.test.de
acl client4 var(txn.txnhost) -m str -i test4.test.de
acl client7 var(txn.txnhost) -m str -i test7.test.de
acl client8 var(txn.txnhost) -m str -i test8.test.de
acl client9 var(txn.txnhost) -m str -i test9.test.de
http-request set-var(txn.txnhost) hdr(host)
use-server client1 if client1
use-server client2 if client2
use-server client3 if client3
use-server client4 if client4
use-server client7 if client7
use-server client8 if client8
use-server client9 if client9
server client1 10.132.1.1:80 id 103 check inter 1000
server client2 10.132.1.2:80 id 104 check inter 1000
server client3 10.132.1.3:80 id 107 check inter 1000
server client4 10.132.1.4:80 id 108 check inter 1000
server client7 10.132.1.7:80 id 112 check inter 1000
server client8 10.132.1.8:80 id 113 check inter 1000
server client9 10.132.1.254:80 id 114 check inter 1000

I Have one backend there more Clients. Than i have one frontend with more URLs.

Frontend test.test.de
have test1.test.de, test2.test.de etc.

Please respond to the entire post.

What is the Problem?
Please help me

I asked 6 things in post number two. You did a single one. Do the rest, and I will be in a better situation to help you.