Skip to content

Commit 51a2596

Browse files
committed
Session affnity proxy
1 parent e242732 commit 51a2596

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

articles/app-service/overview-app-gateway-integration.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: madsd
66
ms.assetid: 073eb49c-efa1-4760-9f0c-1fecd5c251cc
77
ms.service: azure-app-service
88
ms.topic: article
9-
ms.date: 09/29/2023
9+
ms.date: 01/02/2025
1010
ms.author: madsd
1111
ms.custom: devx-track-azurecli, devx-track-arm-template
1212
ms.devlang: azurecli
@@ -127,9 +127,14 @@ To work around the default redirect, you can configure authentication to inspect
127127
}
128128
```
129129

130-
### ARR affinity
130+
### Session affinity
131131

132-
In multiple-instance deployments, [ARR affinity](./configure-common.md?tabs=portal#configure-general-settings) ensures that client requests are routed to the same instance for the life of the session. ARR affinity doesn't work with host name overrides. For session affinity to work, you have to configure an identical custom domain and certificate in App Service and in Application Gateway and not override the host name.
132+
In multiple-instance deployments, [session affinity](./configure-common.md?tabs=portal#configure-general-settings) ensures that client requests are routed to the same instance for the life of the session. Session affinity can be configured to adapt the cookie domain to the incoming header from reverse proxy. By configuring [session affinity proxy](./configure-common.md?tabs=portal#configure-general-settings) to true, session affinity will look for `X-Original-Host` or `X-Forwarded-Host` and adapt the cookie domain to the domain found in this header. As a recommended practice when enabling session affinity proxy, you should configure your access restrictions on the site to ensure that traffic is coming from your reverse proxy.
133+
134+
You can configure also configure `sessionAffinityProxyEnabled` by using the following command:
135+
136+
```azurecli-interactive
137+
az resource update --resource-group myRG --name myWebApp --resource-type "Microsoft.Web/sites" --set properties.sessionAffinityProxyEnabled=true
133138
134139
## Next steps
135140

0 commit comments

Comments
 (0)