How to configure HAProxy for same IP and port in tcp mode using 2 different backends?
<p>I do have HAProxy configured with https termination using the http mode:</p>

<pre><code>frontend apache-https
   #mode tcp
    bind 192.143.56.150:443 ssl crt /etc/ssl/private/rabbit.pem 

    option http-server-close                # needed for forwardfor
    option forwardfor                       # forward IP Address of client
    reqadd X-Forwarded-Proto:\ https
    default_backend apache-http

    acl fx_static   hdr(host) -i static.rabbit.fx-com
    use_backend nginx-cluster       if fx_static
</code></pre>

<p>Now I do want to change the static. domain to http2. The problem is, that I would need to switch to tcp mode in order to do that and in the same time I would loose the ACL http-mode feature.</p>

<p>How is it possible to configure HAProxy for the same IP and port in tcp mode to use 2 different backends?</p>

<p>I would like to use this line together with tcp mode just for static.</p>

<pre><code>   use_backend nginx-cluster-http2 if { ssl_fc_alpn -i h2 }
</code></pre>