Use Application Gateway to deliver multiple backend services using Multiple Listeners on same port

Rajesh Swarnkar 911 Reputation points
2025-10-08T04:35:39.5733333+00:00

Hello, I have a client who is serving multiple services in the backend pool (could be a VM, VMSS, App Service, Function App, IP) to the coprorate user using Application Gateway V2 using Private Frontend IP.

But currently they are using multiple ports to deliver this.

It doesnt feel right to me as the users might have to type the port numbers to access those services.

Now I know that Application gateway breaks up things in multiple parts like in image.

I want to cross check my understanding, if instead of using arbitrary ports for serving the services in backend, is it not possible to use multiple listeners on same set of port viz., 80/443 (and may be use Hostname header) to deliver the services ??

User's image

Please help !

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ravi Varma Mudduluru 1,790 Reputation points Microsoft External Staff Moderator
    2025-10-08T05:42:08.6733333+00:00

    Hello @Rajesh Swarnkar ,

    Thanks for reaching out to Microsoft Q&A

    I understand that you're checking whether it's possible to configure multiple listeners on the same port, such as 80 or 443, in Azure Application Gateway to serve several backend services like VM, VMSS, App Service, or Function App, without requiring users to enter port numbers.

    Yes, this can be achieve by configuring multi-site listeners in Application Gateway, which enable routing of incoming requests based on the hostname specified in the request header.

    • Azure Application Gateway enables multi-site hosting, allowing you to configure multiple listeners on the same port. Each listener can route traffic based on the hostname in the HTTP request, directing it to the appropriate backend pool.
    • While setting up multi-site listeners, you can specify up to five hostnames per listener, including support for wildcard entries. This allows users to access services using hostnames alone, without needing to enter port numbers
    • You’ll need to configure listeners to match the hostnames you intend to support, and then link each listener to the appropriate routing rules that direct traffic to the correct backend pool.

    You might check out the detailed Azure documentation on multi-site hosting:
    https://free.blessedness.top/en-us/azure/application-gateway/multiple-site-overview
    https://free.blessedness.top/en-us/azure/application-gateway/configuration-listeners

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.