v-dev-app01:/root# ping www.zjdev.com
PING www.zjdev.com (192.168.32.16) 56(84) bytes of data.
64 bytes from 192.168.32.16: icmp_seq=1 ttl=64 time=0.238 ms
acl zjdev_6_req hdr_beg(host) -i www.zjdev.com
acl url_static_zjdev path_end .html .gif .png .jpg .css .js
use_backend appserver_8001 if zjdev_6_req url_static_zjdev
匹配域名www.zjdev.com 且匹配.html .gif .png .jpg .css .js结尾
acl zjtest8_req hdr_beg(host) -i www.zjtest8.com
use_backend zjtest8_8001 if zjtest8_req
v-dev-app01:/root# curl http://www.zjdev.com/
test page from scan!
v-dev-app01:/root# ping www.zjtest8.com
PING www.zjtest8.com (192.168.32.16) 56(84) bytes of data.
64 bytes from 192.168.32.16: icmp_seq=1 ttl
haproxy hdr_beg 配置
最新推荐文章于 2021-07-01 01:50:12 发布