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

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

listen HAProxyLocalStats
bind 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
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 id 103 check inter 1000
server client2 id 104 check inter 1000
server client3 id 107 check inter 1000
server client4 id 108 check inter 1000
server client7 id 112 check inter 1000
server client8 id 113 check inter 1000
server client9 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.