On Thu, 17 Apr 2014 10:43:41 +0200 Fabrizio Fichera <fabriziofich...@gmail.com> wrote:
> Hi, > With Haproxy 1.4 how do I separate traffic by domain in mod tcp? > Example: mysql traffic > > In Haproxy with layer 4 not work hdr_dom > > I was thinking something like: > frontend > bind 0.0.0.0:3333 > mode tcp > acl app1 hdr_dom(host) -i app1.mydomain.com > acl app2 hdr_dom(host) -i app2.mydomain.com Hi, "hdr_dom" is a return a part of http request, it dont run in tcp mode. If you want to deal with http data, you must use the http mode. Thierry > Best Regards > Dr. Fabrizio Fichera. > --