Haproxy and authorization with groups
Simple authorization by groups
userlist server-access
group private users user1
group public users user2
user user1 insecure-password user1
user user2 insecure-password user2
frontend example-vhost
bind *:80
acl auth_public http_auth_group(server-access) public
http-request auth realm guest unless auth_public
default_backend service