Haproxy
global
log stdout format raw local0
maxconn 1024
userlist my-auth-list
group my-group
user thorsten insecure-password abc groups my-group
defaults
mode http
log global
timeout client 60s
timeout connect 60s
timeout server 60s
frontend http
bind *:80
bind *:443 ssl crt /etc/my-cert.pem
stats enable
stats uri /stats
stats refresh 10s
stats realm Haproxy\ Statistics
stats auth admin:secret
acl is-in-my-group http_auth(my-auth-list) my-group
acl path_my-path path_beg /wiki
http-request auth realm thorsten1 if path_my-path !is-in-my-group
use_backend thorsten1 if path_my-path is-in-my-group
backend thorsten1
http-request set-header Host www.tgunkel.de
option httpchk HEAD / HTTP/1.1\r\nHost:\ www.tgunkel.de
server thorsten1 www.tgunkel.de:80 check
log stdout format raw local0
maxconn 1024
userlist my-auth-list
group my-group
user thorsten insecure-password abc groups my-group
defaults
mode http
log global
timeout client 60s
timeout connect 60s
timeout server 60s
frontend http
bind *:80
bind *:443 ssl crt /etc/my-cert.pem
stats enable
stats uri /stats
stats refresh 10s
stats realm Haproxy\ Statistics
stats auth admin:secret
acl is-in-my-group http_auth(my-auth-list) my-group
acl path_my-path path_beg /wiki
http-request auth realm thorsten1 if path_my-path !is-in-my-group
use_backend thorsten1 if path_my-path is-in-my-group
backend thorsten1
http-request set-header Host www.tgunkel.de
option httpchk HEAD / HTTP/1.1\r\nHost:\ www.tgunkel.de
server thorsten1 www.tgunkel.de:80 check