route !HTTP connections to tcp backend instead of dropping in HTTP mode

2011-12-10 Thread Łukasz Michalski
Hi, Is it possible to route non-HTTP connections to specific backend instead of returning bad request in http mode? Some of my clients sends a small XML request (~30 bytes) to HTTP port and I need to route that connection to specific backend in tcp mode. If not, do you know any software that I

Re: route !HTTP connections to tcp backend instead of dropping in HTTP mode

2011-12-10 Thread Baptiste
Hi, There is an ACL for that: req_proto_http (and an alias exists: HTTP) you can choose you backend based on it's return: tcp-request content inspect-delay 1s use_backend bk_http if HTTP use_backend bk_xml if !HTTP cheers 2011/12/10 Łukasz Michalski l...@zork.pl: Hi, Is it possible to