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

Curtis Justus 21 Reputation points
2020-05-22T17:57:59.353+00:00

Hi,

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:

https://site.foo.com -- access to everybody
https://site.foo.com/virtualOne -- access to only a handful of IP addresses
https://site.foo.com/virtualTwo -- access to everybody

Thank you for your help,
Curt

Azure Application Gateway
Azure Application Gateway
An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
957 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,876 questions
0 comments No comments
{count} votes

Accepted answer
  1. suvasara-MSFT 10,001 Reputation points
    2020-05-27T17:39:35.84+00:00

    Hello,

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Vineet Kumar Gupta 161 Reputation points
    2022-09-07T13:27:18.51+00:00

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

    0 comments No comments