I have setup my Application Gateway and added a CNMAME in my domain to point to the DNS Name of the application gateway. The application gateway will point to 3 sites eventually . I created 3 web apps and have added each to the backend pool . I initially used the default HTTP Settings (appGatewayBackendHttpSettings ) but realised I needed to point to 3 health probes so I duplicated this HTTP Setting and allocated it to one of the listerners and pointed this to a health probe for one of the site.
I then configured my applicationgateway as below but get a 404 error when navigating to the site even though the probe shows its healthy.
mydomainListener
Frontend IP Configuration : appGatewayFrontendIP
FrontendPort : appGatewayFrontendPort (443)
hostname : test.mydomain.com
Protocol : HTTPS
Certificate : test-cert
Associated Rule : testRule
TestRule
Type: Basic
Backendpool:testBackendPool
HTTP setting : testHTTPSetting
testHTTPSetting
Cookie based affinity : Disabled
Connection draining : Disabled
Protocol : HTTPS
Port : 443
Backend authentication certificates :mycert
Use a Custom Prove : testHTTPSProbe
Request Timeout : 30
testHTTPSProbe:
Host : test-azurewebsites.net
Protcol : HTTPS
Path : /
Interval : 30
Timeout 30
Unhealthy Threshold : 3
Minimum healthy servers :0