Hi Lucas,
This is my config , im using haproxy version 1.5.18
Problem that i have is - route to backend qa2 is working fine as it is static server and have a static ip.
route to qa21 is not working. 7843-qa.apps.c1-testqa.tesdomain.org.com is getting translated to an IP, however i dont want that to happen and backend expects to send/forward the request to hostname 7843-qa.apps.c1-testqa.tesdomain.org.com
is there any way to do it?
log 127.0.0.1:514 local0
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
#---------------------------------------------------------------------
defaults
mode tcp
log global
option tcplog
option dontlognull
log-format “%{+E,+Q}%H,BACKEND_IP_PORT:%si:%sp,FRONTEND_IP_PORT:%ci:%cp,httprequest:%r,capture.req.hdr(2)”
option http-server-close
option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 3000
#---------------------------------------------------------------------
frontend main
bind *:6905
bind *:6906
acl d1 dst_port 6905
use_backend qa2 if d1
acl d2 dst_port 6906
use_backend qa21 if d2
backend qa21
server app 7843-qa.apps.c1-testqa.tesdomain.org.com
backend qa2
server app testqa.tesdomain.org.com:6905