hdr(host) includes port?

2013-06-16 Thread pechspilz
Hi there, Is the port part of a HTTP header hostname? It looks like, because depending on the frontend port I have to do something like this: if { hdr(host) -i haproxy-rulez.net:8181 } ...if the frontend is bound to :8181 I'd prefer to just write if { hdr(host) -i haproxy-rulez.net } ...no

RE: hdr(host) includes port?

2013-06-16 Thread Lukas Tribus
Hi! That way I wouldn't have to remember to change the port in the ACL if I decide to change the frontend port. I know I probably could use hdr_beg instead but I'd prefer a full hostname match. Why not use something like this:  if { hdr(host) -i haproxy-rulez.net } || { hdr_beg(host) -i

RE: haproxy mysql-check

2013-06-16 Thread Jayadevan M
Hi, -Original Message- From: Willy Tarreau [mailto:w...@1wt.eu] Sent: Friday, June 14, 2013 5:53 PM To: Jayadevan M Cc: Jayadevan M; haproxy@formilux.org Subject: Re: haproxy mysql-check On Fri, Jun 14, 2013 at 10:30:14AM +, Jayadevan M wrote: Telnet works - -bash-3.00# telnet

Re: haproxy mysql-check

2013-06-16 Thread Willy Tarreau
Hi Jayadevan, On Mon, Jun 17, 2013 at 04:55:42AM +, Jayadevan M wrote: Here is the output. 192.168.2.27 (MySQL on linux) works. 192.168.8.37 (MySQL on Windows) does not. OK so linux part here : 10:25:57.474629 connect(5, {sa_family=AF_INET, sin_port=htons(3306),

RE: haproxy mysql-check

2013-06-16 Thread Jayadevan M
HI, OK so linux part here : 10:25:57.474629 connect(5, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr(192.168.2.27)}, 16) = -1 EINPROGRESS (Operation now in progress) 0.000202 10:25:57.475000 sendto(5, \16\0\0\1\0\200\0\0\1haproxy\0\0\1\0\0\0\1, 23, MSG_DONTWAIT|MSG_NOSIGNAL,