Azure Application Gateway -- Manage Access to Virtual Directory based on IP address

Curtis Justus 21 Reputation points


We moved our infrastructure from a private cloud to Azure. Previously, we were able to manage access to a virtual directory on a web site based on the client's IP address. Now, we have an application gateway with a load balancer and all requests come from one of those IP addresses. I am able to recognize X-Forwarded-For in the log files, so I know that is getting to the web servers.

We have virtual machines that are hosting many sites for many clients.

How can I configure the following: -- access to everybody -- access to only a handful of IP addresses -- access to everybody

Thank you for your help,

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,561 questions
Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
610 questions
No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 9,876 Reputation points


    Azure Application gateway do not support HTTP header based routing. I would recommend you to up-vote this feature in feedback section for its future availability.

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.

1 additional answer

Sort by: Most helpful
  1. Vineet Kumar Gupta 161 Reputation points

    Azure App Gateway not supposed to be used for HTTP header routing .