How to route to a different backend in haproxy when in tcp mode depending on the site requested

Solution Verified - Updated -

Issue

  • How to route to a different backend in haproxy when in tcp mode depending on the site requested?
  • Is haproxy able to inspect the HTTP headers when proxying SSL/TLS traffic in TCP mode?
  • How to use haproxy attribute req_ssl_sni
  • Why can't req.hdr(Host) be used when proxying HTTPS traffic configured in tcp mode

Environment

  • Red Hat Enterprise Linux
  • Haproxy

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content