Dear Experts.
Our haproxy front end takes connections on port 80.
How to split an ordinary incoming traffic from traffic to zabbix agent which runs behind the haproxy?
All ordinary traffic has URL like 222.222.222.222:80/some_path.
Zabbix has URL like 222.222.222.222:80
Again, there is only one public port open on server PC: it is 80.
There is no DNS name for this port.
Can the following config. work:
frontend main
bind *:80
# ordinarytraffic
acl ordinary path_beg -i /some_path
use_backend ordinary_back if ordinary
# zabbix
acl is_zabbix
use_backend zabbix_back if is_zabbix
# how to match empty "path" ?
......
Thank you.
Our haproxy front end takes connections on port 80.
How to split an ordinary incoming traffic from traffic to zabbix agent which runs behind the haproxy?
All ordinary traffic has URL like 222.222.222.222:80/some_path.
Zabbix has URL like 222.222.222.222:80
Again, there is only one public port open on server PC: it is 80.
There is no DNS name for this port.
Can the following config. work:
frontend main
bind *:80
# ordinarytraffic
acl ordinary path_beg -i /some_path
use_backend ordinary_back if ordinary
# zabbix
acl is_zabbix
use_backend zabbix_back if is_zabbix
# how to match empty "path" ?
......
Thank you.
Comment