You are deploying a single Azure Application Gateway v2 to host two web applications: billing.contoso.com and claims.contoso.com. Both applications must share a single public IP address on the gateway, but traffic must be routed to separate backend pools: BillingPool and ClaimsPool. You need to configure the Application Gateway listeners and routing rules to ensure traffic is correctly directed to the appropriate backend pool. Which configuration should you implement?
- Create two multi-site listeners, one for billing.contoso.com and another for claims.contoso.com, and configure two basic routing rules to associate each listener with its respective backend pool.Answer
- BCreate a single basic listener configured for the public IP address, and configure a path-based routing rule that routes traffic based on HTTP Host headers.
- CCreate a single multi-site listener with the host name set to *.contoso.com, and configure a single basic routing rule with a redirection configuration to the backend pools.
- DCreate two multi-site listeners, one for billing.contoso.com and another for claims.contoso.com, and configure a single path-based routing rule that references both listeners.
Answer
Create two multi-site listeners, one for billing.contoso.com and another for claims.contoso.com, and configure two basic routing rules to associate each listener with its respective backend pool.
Configuring separate multi-site listeners allows the Application Gateway to route traffic based on the Host header of incoming requests. Since each listener must be linked to its own backend pool, two separate routing rules are required to complete the configuration.
Step-by-Step Solution
Key Concept
Multi-site hosting and routing configuration on Azure Application Gateway
Estimated Time:1m 30s