I have currently such config, how would I need to change this so I can have different services on different ports. I would like to add a fronted+backend for svc1 on a different port than 443 but with the same certificate.
frontend https
mode tcp
bind 0.0.0.0:443
tcp-request connection reject if blacklistweb
tcp-request inspect-delay 5s
tcp-request content accept if { req.ssl_hello_type 1 }
use_backend _recir_svc1 if { req.ssl_sni -i svc1.example.com }
use_backend _recir_svc2 if { req.ssl_sni -i svc2.example.com }
use_backend _recir_svc3 if { req.ssl_sni -i svc3.example.com }
use_backend _recir_svc4 if { req.ssl_sni -i svc4.example.com }
use_backend _recir_svc5 if { req.ssl_sni -i svc5.example.com }
use_backend _recir_svc6 if { req.ssl_sni -i svc6.example.com }
backend _recir_svc1
server loopback-for-tls abns@svc1 send-proxy-v2
backend _recir_svc2
server loopback-for-tls abns@svc2 send-proxy-v2
backend _recir_svc3
server loopback-for-tls abns@svc3 send-proxy-v2
backend _recir_svc4
server loopback-for-tls abns@svc4 send-proxy-v2
backend _recir_svc5
server loopback-for-tls abns@svc5 send-proxy-v2
backend _recir_svc6
server loopback-for-tls abns@svc6 send-proxy-v2
frontend svc1
mode http
bind abns@svc1 accept-proxy ssl crt svc1.example.com.pem