Skip to content

Instantly share code, notes, and snippets.

@murarisumit
Forked from PiBa-NL/gist:531373a49264aeb5dc3f
Created October 21, 2015 12:30
Show Gist options
  • Save murarisumit/45fae1d1c21c1afa386e to your computer and use it in GitHub Desktop.
Save murarisumit/45fae1d1c21c1afa386e to your computer and use it in GitHub Desktop.
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
userlist stats-auth
user admin insecure-password pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment