Ref1: enter link description here
Ref2: enter link description here
I've implemented mutual (certificate) authentication and I hosted my app on the Azure App service. When I open directly my app URL https://apptemp.azurewebsites.net/swagger/index.html
and then select client certificate, the app works well and I see my app page.
Now, I've added an Azure Application Gateway V2 ( without WAF) with the below configuration.
- I configure this item on my web app
- I configure the backend HTTP setting
- Create an SSL profile with a Public certificate that is exported from the root certificate. The root certificate was uploaded to the server.
- I added a listener
- In the health probe with the below config.
for the resulting test, I received this error:
Received invalid status code: 403 in the backend server’s HTTP response. As per the health probe configuration, 200-399 is the acceptable status code. Either modify probe configuration or resolve backend issues.
And also I received the 502 bad gateway
when I open the test.mydomain.com
URL.
- I changed
HTTP response status code match
to 200-403 and then I received Healthy status.
But when I open the test.mydomain.com
URL I received the below error.
Really I am confused that what is the problem :(
I tried to reproduce the same in my environment and got the results successfully.
I created app service with host
https://staxxx.azurewebsites.net/imran/index.html
as same.Added backend pool:
I have created two backend setting with http port 80 and https port 443 like below ...custom probes automatically added when you are creating probes.
And try to update SSL profile with client authentication and ssl policy like below.
While creating application gateway I created listener 1 with HPPT 80 and now I added listener 2 with port 443 along with sample host name.
While creating app gateway I created rule 1 with listener 1 with path base and then I create another rule with listener 2 with same backend target and setting like below.
Now I added rule 2 with listener 2 with same backend target and setting... So, my ssl certificate will be integrate to listener 2 and listener to http and it will establish a connection to the backend targets.
Added healthy probes
Now, when I try to redirect it's work successfully like below