mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:57:32 +08:00
Update haproxy.cfg
This commit is contained in:
parent
87e75f59ae
commit
b413490fca
@ -15,6 +15,22 @@ frontend http-in
|
|||||||
use_backend pwd1 if host_pwd1
|
use_backend pwd1 if host_pwd1
|
||||||
use_backend pwd2 if host_pwd2
|
use_backend pwd2 if host_pwd2
|
||||||
|
|
||||||
|
acl host_lab_bingohuang hdr(host) lab.bingohuang.com
|
||||||
|
acl host_pwd1_b hdr_reg(host) -i ^.*\.?host1\.lab.bingohuang.com?:?.*$
|
||||||
|
acl host_pwd2_b hdr_reg(host) -i ^.*\.?host2\.lab.bingohuang.com?:?.*$
|
||||||
|
|
||||||
|
use_backend all if host_lab_bingohuang
|
||||||
|
use_backend pwd1 if host_pwd1_b
|
||||||
|
use_backend pwd2 if host_pwd2_b
|
||||||
|
|
||||||
|
acl host_labs_bingohuang hdr(host) labs.bingohuang.com
|
||||||
|
acl host_pwd1_c hdr_reg(host) -i ^.*\.?host1\.labs.bingohuang.com?:?.*$
|
||||||
|
acl host_pwd2_c hdr_reg(host) -i ^.*\.?host2\.labs.bingohuang.com?:?.*$
|
||||||
|
|
||||||
|
use_backend all if host_labs_bingohuang
|
||||||
|
use_backend pwd1 if host_pwd1_c
|
||||||
|
use_backend pwd2 if host_pwd2_c
|
||||||
|
|
||||||
backend all
|
backend all
|
||||||
balance roundrobin
|
balance roundrobin
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user