Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4745

Why does my simplified config not work? - 1.8 - tcp reverse proxy with domain name checks

$
0
0

@michacassola wrote:

Hi there,

could anybody help me to figure out why my config does not work?

listen listener
  mode tcp
  bind *:80
  bind *:443
  bind *:10000
  bind *:8443

  tcp-request inspect-delay 5s
  tcp-request content accept if HTTP or { req_ssl_hello_type 1 }

  use-server c2 if { hdr(host) -i -f /etc/haproxy/c2/domains } or { req_ssl_sni -i -f /etc/haproxy/c2/domains }
  server c2 10.192.119.156 port 443 check

  use-server c3 if { hdr(host) -i -f /etc/haproxy/c3/domains } or { req_ssl_sni -i -f /etc/haproxy/c3/domains }
  server c3 10.192.119.155 port 443 check

  use-server c4 if { hdr(host) -i -f /etc/haproxy/c4/domains } or { req_ssl_sni -i -f /etc/haproxy/c4/domains }
  server c4 10.192.119.143 port 443 check

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>