[SOLVED] HTTP redirect if mysql backend changes

Hi,

I currently have two backends :

  • The first monitors two mariadb servers (via MySQL checks).
  • The second monitors two apache servers (HTTP checks).

How can I create a frontend for the apache servers which will redirect to the second server if the MySQL backend switched to the second mariadb server ?

Solved!

I managed to do it with the following acl :
acl serveris1up srv_is_up(NAME_OF_THE_BACKEND/NAME_OF_THE_SERVER_IN_THE_BACKEND)

(All in one line)