Forum Discussion

Cos_skier's avatar
Cos_skier
Copper Contributor
Mar 03, 2023

Application Gateway Backend Port Routing

Scenario: Setup App Gateway to allow traffic from sever different alias urls (appa.gateway.com / appb.gateway.com / appc.gateway.com) these will all point to the private ip front end over 443. Thats easy enough to do.   Based on those calls from each of the individual alias' then route the traffic to a different PORT on a backend which is all the same VM.   

 

Use case:

Calls from appa.gateway.com should go to VM1 on port 44301

Calls from appb.gateway.com should go to VM1 on port 44302

Calls from appc.gateway.com should go to VM1 on port 44303

 

Is this possible using app gateway? It's not possible to have the same backend vm so I was thinking of having multiple NIC's on the same vm that each backend would point to?  

 

Caveat... this is dev so its just one vm on the backend, when we get to qa / prod there will be several, so thinking I will need a load balancer that the app gateway points to.  

  • anas86's avatar
    anas86
    Copper Contributor
    This scenario should be doable. You need 3 multisite listeners for each domain, and 3 different backend settings each one specify different backend port. This should work with one VM and one NIC.

Resources