Search code examples
azureazure-application-gateway

App service gateway IP shows This site can’t provide a secure connection Diagnostics. ERR_SSL_PROTOCOL_ERROR


I am trying to create application gateway for an Azure app service. I configured everything accordingly. I did not use custom domain. I want to configure with azure app service default domain. I followed a couple of videos on youtube:

I tried to create a app gateway and now it shows the following error

This site can’t provide a secure connection app120.azurewebsites.net sent an invalid response. Try running Windows Network Diagnostics. ERR_SSL_PROTOCOL_ERROR

I tried the possible ways for clearing this issue. Which are:

Clearing Browser cache. Reset system time Flushing DNS cache Clear SSL state Disable antivirus Delete Host file

But none of them solved my problem. Also please provide the process to create app gateway for the azure app service for default domain.


Solution

  • I tried the same in my environment I got the same error like below:

    enter image description here

    Created Application gateway with backend pool and http setting like below:

    enter image description here

    Associate rule with listener and backend setting :

    enter image description here

    Make sure to add service endpoint in virtual network like below:

    enter image description here

    Check your backend status is healthy like below:

    enter image description here

    Note that: According to MsDoc default domain may not work always as there are limitations. If your backend status is in healthy state Application Gateway IP Address will redirecting to app service URL, for this case you can use custom domain to avoid any potential issues It's also possible that there might be transient issues that resolve themselves over time.

    In app service -> configuration -> General settings -> HTTPS Only is turned on like below:

    enter image description here

    When I hit the public IP got result successfully like below:

    enter image description here

    References:

    Manage traffic to App Service - Azure Application Gateway | Microsoft Learn

    Host name preservation - Azure Architecture Center | Microsoft Learn