Skip to content

Instantly share code, notes, and snippets.

@vacax
Created October 16, 2020 20:29
Show Gist options
  • Save vacax/b3df793613373fb1f3be7b35aa138b67 to your computer and use it in GitHub Desktop.
Save vacax/b3df793613373fb1f3be7b35aa138b67 to your computer and use it in GitHub Desktop.
Configuración de HAProxy para uso de Sesiones
listen aplicacion_web
bind *:80
mode http
stats enable
stats uri /stats
stats realm HAProxy\ Statistics
stats auth cda:cda
balance roundrobin
cookie SERVERID insert indirect nocache
server app-01 localhost:7000 check cookie s1
server app-02 localhost:7001 check cookie s2
server app-03 localhost:7002 check cookie s3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment