You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-signalr/signalr-howto-reverse-proxy-overview.md
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ A common architecture using a reverse proxy server with Azure SignalR is as belo
18
18
19
19
There are several general practices to follow when using a reverse proxy in front of SignalR Service.
20
20
21
-
* Make sure to rewrite the incoming HTTP `HOST` header with the Azure SignalR service URL, e.g. `https://demo.service.signalr.net`. Azure SignalR is a multi-tenant service, and it relies on the `HOST` header to resolve to the correct endpoint. For example, when [configuring Application Gateway](./signalr-howto-work-with-app-gateway.md#create-an-application-gateway-instance) for Azure SignalR, select **Yes** for the option *Override with new host name*.
21
+
* Make sure to rewrite the incoming HTTP [HOST header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Host) with the Azure SignalR service URL, e.g. `https://demo.service.signalr.net`. Azure SignalR is a multi-tenant service, and it relies on the `HOST` header to resolve to the correct endpoint. For example, when [configuring Application Gateway](./signalr-howto-work-with-app-gateway.md#create-an-application-gateway-instance) for Azure SignalR, select **Yes** for the option *Override with new host name*.
22
22
23
23
* When your client goes through your reverse proxy to Azure SignalR, set `ClientEndpoint` as your reverse proxy URL. When your client *negotiate*s with your hub server, the hub server will return the URL defined in `ClientEndpoint` for your client to connect. [Check here for more details.](./concept-connection-string.md#client-and-server-endpoints)
24
24
@@ -39,6 +39,14 @@ There are several general practices to follow when using a reverse proxy in fron
Makesurethatyourreverseproxysupportsbothtransporttypesfor `/client` subpath. For example, when your transport type is WebSocket, make sure your reverse proxy supports both HTTP and WebSocket for `/client` subpath.
47
+
48
+
If you have configured multiple SignalR services behind your reverse proxy, make sure `negotiate` request and `connect` request with the same `asrs_request_id` query parameter(meaning they are for the sameconnection) areroutedtothesameSignalRserviceinstance.
49
+
42
50
*WhenyourservergoesthroughyourreverseproxytoAzureSignalR, set `ServerEndpoint` asyourreverseproxyURL. YourappserverwillusetheURLdefinedin `ServerEndpoint` tostarttheserverconnectionsorRESTAPIcalls. [Checkhereformoredetails.](./concept-connection-string.md#client-and-server-endpoints)
43
51
44
52
Therearetwowaystoconfigure `ServerEndpoint`:
@@ -58,18 +66,11 @@ There are several general practices to follow when using a reverse proxy in fron
Makesurethatyourreverseproxysupportsbothtransporttypesfor `/client` subpath. For example, when your transport type is WebSocket, make sure your reverse proxy supports both HTTP and WebSocket for `/client` subpath.
66
-
67
-
If you have configured multiple SignalR services behind your reverse proxy, make sure `negotiate` request and `connect` request with the same `asrs_request_id` query parameter(meaning they are for the sameconnection) areroutedtothesameSignalRserviceinstance.
0 commit comments