Skip to content

Instantly share code, notes, and snippets.

@PiBa-NL
PiBa-NL / gist:531373a49264aeb5dc3f
Last active October 21, 2015 12:30
Haproxy stand alone stats listen section
listen MyStats
mode http
bind 0.0.0.0:1000
stats enable
stats uri /
# if authentication is wanted
acl auth_ok http_auth(stats-auth)
http-request auth unless auth_ok
@PiBa-NL
PiBa-NL / HAProxy SNI fallback workaround example
Last active September 27, 2019 05:31
HAProxy SNI fallback/workaround example this example shows some of the possibilities that are possible to give 'best effort' support for browsers that do not support SNI.. (or at least my quick testcase/workout turned into this.., i dont use it myself, and i don't claim its actually usable for anyone.)
global
maxconn 300
log 192.168.0.40 local0 debug
stats socket /tmp/haproxy.socket level admin
gid 80
nbproc 1
chroot /var/empty
daemon
#
# Example configuration for HAProxy 1.5-dev19 for using SNI