2
votes

I have setup a Azure Application Gateway in front of an Azure Web Application. I have added a IP restriction on Web app allowing access only from the Application gateway's public IP address. This works fine but the when I add the public IP address on the browser it re-directs to the web app's URL. How can I stop the application gateway redirecting to the web app URL but to return the response against the public IP?

2

2 Answers

0
votes

I have deployed MVC web application behind Application gateway with following settings and when I type Ip address of application gateway, it shows web application on application gateway IP

Custom probe was automatically added when I saved page after selecting "HTTPS" and "Use for App Service" option.

enter image description here

Backend pool where WebApp was selected

enter image description here

if you still see any issues then I will post steps to configure everything tomorrow.

0
votes

It turns out that you first need to configure the custom domain to the webapp and once the propagation happens the CNAME record of the custom domain should be changed to map the FQDN of the Application gateway.