question

MrJSmith-5263 avatar image
0 Votes"
MrJSmith-5263 asked brtrach-MSFT edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers