mode http
option forwardfor
option http-server-close
option forceclose
no option httpclose
# Cookie qui permet a chaque client de toujours utiliser le même backend
cookie ULPWEBID insert nocache indirect
# Algorythme de repartition de charge
balance roundrobin
acl hdr_connection_upgrade hdr(Connection) -i upgrade
http-request deny if ! hdr_connection_upgrade
# Liste des serveurs backend
server back-lb1-mdw serveur1.univ.fr:20040 maxconn 3000 weight 10 cookie back-lb1-mdw check
server back-lb2-mdw serveur2.univ.fr:20040 maxconn 3000 weight 10 cookie back-lb2-mdw check
server back-lb3-mdw serveur3.univ.fr:20040 maxconn 3000 weight 10 cookie back-lb3-mdw check
server back-lb4-mdw serveur4.univ.fr:20040 maxconn 3000 weight 10 cookie back-lb4-mdw check
backend www_mdw
# Cookie qui permet a chaque client de toujours utiliser le même backend
cookie ULPWEBID insert nocache indirect
option forwardfor
reqadd x-forwarded-proto:\ https
# Algorythme de repartition de charge
balance roundrobin
# Liste des serveurs backend
server back-lb1-mdw serveur1.univ.fr:20040 maxconn 1000 cookie back-lb1-mdw weight 10 check
server back-lb2-mdw serveur2.univ.fr:20040 maxconn 1000 cookie back-lb2-mdw weight 10 check
server back-lb3-mdw serveur3.univ.fr:20040 maxconn 1000 cookie back-lb3-mdw weight 10 check
server back-lb4-mdw serveur4.univ.fr:20040 maxconn 1000 cookie back-lb4-mdw weight 10 check