In my scenario, I have an Application Gateway And three web apps on the backend.
I route traffic based on subdomain and config Listener with HTTPS. All of the home pages of these web apps work well.
Also, I have a program that sends data to a specific URL on web app 2 from a VM.
When I send traffic directly to the web app2 address via HTTP
and HTTPS
, it works well. Because they connect together with private IP and they are on the same network.
Example URL:
https://webapp2.ase.p.azurewebsites.net/Hub
http://webapp2.ase.p.azurewebsites.net/Hub
In my application gateway I config the listener with HTTPS
but when I want to send traffic to https://app2.mydomain.com/Hub
( Application Gateway) via HTTPS
I receive an error.
The error is:
`Microsoft.AspNetCore.SignalR.HubException: Unable to complete handshake with the server due to an error: Handshake was canceled.`
But, when I change the application listener configuration to HTTP
and send traffic to http://app2.mydomain.com/Hub
, it works well.
For your information, inbound and outbound traffic on 80
and 443
ports on the Security groups and VM firewall are open.
`Netstat` output in public IP:
Netstat
output in private IP: