Web App only accepting Host Header that matches custom domain of Web App

Mr J Smith 1 Reputation point

I 'm using Application Gateway v2 in front of a Web App that's hosting multiple sites.

In the AppGW 'HTTP settings' under 'Host Name' there's a setting 'Override with new host name' which i have set to 'No' (so it keeps the website domain name as the host header). However this doesn't work, i get a 'Bad Gateway' error.

The website application is configured to listen for traffic from from my domain

The only way i can make it work is to use the option 'Override with a specific domain name' and enter the custom domain name of my app. This however causes problems with my website application which in certain instances (e.g. redirect) uses the Web App custom domain and not the required website domain.

Thanks in advance

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