Re: Haproxy subdomain going to wrong backend

2016-11-14 Thread Bryan Talbot
Use “reply-all” so the thread stays on the list. > On Nov 14, 2016, at Nov 14, 4:33 AM, Azam Mohammed wrote: > > Hi Bryan, > > Thanks for your email. > > I was doing a bit of testing on haproxy. > > I used hdr to match the subdomain in frontend but I got 503 "503 Service

Re: Haproxy subdomain going to wrong backend

2016-11-10 Thread Bryan Talbot
> On Nov 9, 2016, at Nov 9, 4:45 AM, Azam Mohammed wrote: > > Also we have exact same Haproxy config on QA and UAT environment and works > fine. > > QA Environment: > Haproxy Version: HA-Proxy version 1.5.4 > OS Version: CentOS release 6.3 (Final) > > UAT Environment: >

Re: Haproxy subdomain going to wrong backend

2016-11-10 Thread Bryan Talbot
… please include the list in your responses too > On Nov 10, 2016, at Nov 10, 4:09 AM, Azam Mohammed wrote: > > Hi Bryan, > > Thanks for your reply. > > Putting "use_backend test" first in Haproxy config worked fine. > > But I have few more question based on the solution.

Re: Haproxy subdomain going to wrong backend

2016-11-09 Thread Bryan Talbot
> On Nov 9, 2016, at Nov 9, 4:45 AM, Azam Mohammed wrote: > > Hello, > > > > > acl url_subdomain hdr_dom(host) -i subdomain.domain.com > > acl url_test hdr_dom(host) -i > test.subdomain.domain.com

Haproxy subdomain going to wrong backend

2016-11-09 Thread Azam Mohammed
Hello, We are facing a strange issue on haproxy server on our production environment. In DNS we point our domains/subdomains to haproxy using a cname. Our servers are hosted on AWS. For example, we have two subdomain pointing to haproxy. subdomain.domain.com points to