When we call domain url, www.foo.com
it gives 502 error
"502 - Web server received an invalid response while acting as a gateway or proxy server."
But the technical url www.foo.azurewebsites.net
is working fine.
How do we diagnose this?
- Since the technical url is working fine we can rule out application or code error
- We ran a Diagnosis of WAF (pdf removed the spaces, sorry)
DegradedBackendServerHealth:ApplicationGateway:'FOO',BackendServer:'foo.azurewebsites.net',HealthStatus:Down,BackendservercertificateisnotwhitelistedwithApplication Gateway.,Reportedat:7/14/20199:34:40AM.Mitigation:Reviewthehealthofthebackendserverfirst.Ifthebackend serverishealthyandcanrespondwithHTTP200viaotheraccesspaths,troubleshootnetworkconnectivityfromthe ApplicationGatewayinstancestothebackendserver.Troubleshootingincludes(butisnotlimitedto):SecurityRules, routing,networkperformance,andgeneralTCPconnectivitytroubleshooting. WehavefoundthatalltheinstancesofBackendAddressPoolareunhealthy.Ensurethattheinstancesarehealthyandthe applicationisproperlyconfigured.Checkiftheback-endinstancescanrespondtoapingfromanotherVMinthesame VNet.Ifconfiguredwithapublicendpoint,ensureabrowserrequesttothewebapplicationisserviceable.
- We checked the certifcates configured, it is working fine
- Pretty much all recommendation are verified and working fine
How can we diagnose this further and find rootcause?