Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
HAProxy HTTP Check with Head & User Agent type
listen justFenWEB
mode tcp ## Drops from Layer 7 to Layer 4 routing as defined in defaults
option tcplog
balance source ## To maintain sessions
option httpchk HEAD / HTTP/1.0\r\nHost:\\r\nUser-Agent:\ HAProxy01 ## Used for checking HTTP health of web server
rspidel ^Set-cookie:\ IP= ## Will hide internal IP
server APP01 check
server APP03 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment