1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-10-04 01:17:49 +08:00

Add TCP proxy for tcp over http connections

This commit is contained in:
Marcos Lilljedahl
2017-03-30 16:49:03 -03:00
parent e60622ff9e
commit 75f3c93612
3 changed files with 85 additions and 40 deletions

View File

@@ -8,8 +8,8 @@ frontend http-in
bind *:8080
acl host_localhost hdr(host) localhost
acl host_pwd1 hdr_reg(host) -i ^.*\.?host1\.localhost$
acl host_pwd2 hdr_reg(host) -i ^.*\.?host2\.localhost$
acl host_pwd1 hdr_reg(host) -i ^.*\.?host1\.localhost?:?.*$
acl host_pwd2 hdr_reg(host) -i ^.*\.?host2\.localhost?:?.*$
use_backend all if host_localhost
use_backend pwd1 if host_pwd1