An administrator is configuring an Azure Application Gateway to host two distinct websites: sales.contoso.com and marketing.contoso.com. Both sites must be accessed using the same public IP address of the gateway but must route to different backend pools. Which listener type should be configured on the Application Gateway?
- ABasic
- Multi-siteAnswer
- CPath-based
- DPrivate
Answer
Configure a multi-site listener on the Application Gateway.
Configuring a multi-site listener is correct because it allows the Application Gateway to host multiple domain names on a single public IP address and port. The gateway reads the Host header in incoming HTTP requests to route them to the correct backend pool.
Step-by-Step Solution
Key Concept
Azure Application Gateway listeners define how incoming traffic is received. A basic listener handles a single domain, while a multi-site listener allows hosting multiple domains (e.g., sales.contoso.com and marketing.contoso.com) on the same IP address and port by inspecting the HTTP Host header.