Integrating with web applications
To connect to your web application, Azure Application Gateway needs to have a proper configuration of the backend. By accessing the Backend settings blade, you have access to all the parameters that are used for a connection. If they are incorrect, the backend pool will report Unhealthy as the endpoint status and return HTTP 502
as a result. It is important to understand the implications of the parameters used to avoid problems with connectivity.
In the previous sections, we created an instance of Azure Application Gateway using default settings. This can cause problems as, by default, the incoming host header will not be rewritten to match a backend. To change that, go to Backend settings, select your settings, and see the Host name section:
Figure 23.11 – Proper configuration of the host name override
To fully integrate our service with Azure App Service, we need to change the Override with new host name option...