So, originally my haproxy.cfg
looks like this (snippet):
frontend https_in
mode http
option httplog
option forwardfor
bind 192.168.150.2:443 ssl crt /etc/haproxy/ssl_cert/star_some_domain.pem crt /etc/haproxy/ssl_cert/star_sub_some_domain.pem
acl host_git hdr(host) -i git.some.domain
acl host_kibana hdr(host) -i kibana.sub.some.domain
use_backend gitserver if host_git
use_backend kibanaserver if host_kibana
default_backend webserver1
The backend for webserver1
is getting overloaded, so we moved some domains to a new server, and the newest haproxy.cfg
looks like this (snippet):
frontend https_in
mode http
option httplog
option forwardfor
bind 192.168.150.2:443 ssl crt /etc/haproxy/ssl_cert/star_some_domain.pem crt /etc/haproxy/ssl_cert/star_sub_some_domain.pem
acl host_git hdr(host) -i git.some.domain
acl host_kibana hdr(host) -i kibana.sub.some.domain
acl is_website hdr(host) -i sub.some.domain
acl is_website hdr(host) -i www.sub.some.domain
use_backend gitserver if host_git
use_backend kibanaserver if host_kibana
use_backend websrv if is_website
default_backend webserver1
# "websrv" and "webserver1" are different backends
The most perplexing thing is that some browsers seem to insist / get redirected to the "webserver1" backend instead of the "websrv" backend; opening Private browser / Incognito gets redirected properly to "websrv".
So I suspect there's some sort of "sticky session" going on.
How do I list and/or clear these "sticky sessions"?