Multiple HTTPS services on same hostname but different port

Hi guys,

I am currently setting up tunnels for testing. I have a working tunnel setup on my origin that is running nginx with a number of hostnames each having 2 distinct services running on ports 443 and 2096. Illustration:
a.example.com:443
a.example.com:2096
b.example.com:443
b.example.com:2096

Matching traffic based on hostnames works fine but I am now having trouble properly differentiating traffic based on those 2 ports. I.e. https://a.example.com:2096 gets served the content of poer 443 as well.

My config file looks like this right now:

ingress:

  • hostname: a.example.com
    service: https://localhost:443
    originRequest:
    originServerName: a.example.com
  • hostname: a.example.com
    service: https://localhost:2096
    originRequest:
    originServerName: a.example.com
  • service: http_status:404

Can anyone hint me in the right direction to get this working properly? TIA!