Skip to content

Commit 776d0f1

Browse files
authored
Merge pull request #84752 from vhorne/ag-rewrite-http
Ag rewrite http
2 parents 8c9dd90 + 92192e4 commit 776d0f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

articles/application-gateway/rewrite-http-headers.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: application-gateway
55
author: vhorne
66
ms.service: application-gateway
77
ms.topic: article
8-
ms.date: 04/29/2019
8+
ms.date: 08/08/2019
99
ms.author: absha
1010
---
1111

@@ -98,6 +98,8 @@ To configure HTTP header rewrite, you need to complete these steps.
9898
- **Rewrite set**: Contains multiple rewrite rules that will be associated with a request routing rule.
9999

100100
2. Attach the rewrite set (*rewriteRuleSet*) to a routing rule. The rewrite configuration is attached to the source listener via the routing rule. When you use a basic routing rule, the header rewrite configuration is associated with a source listener and is a global header rewrite. When you use a path-based routing rule, the header rewrite configuration is defined on the URL path map. In that case, it applies only to the specific path area of a site.
101+
> [!NOTE]
102+
> URL Rewrite alter the headers; it does change the URL for the path.
101103
102104
You can create multiple HTTP header rewrite sets and apply each rewrite set to multiple listeners. But you can apply only one rewrite set to a specific listener.
103105

@@ -148,7 +150,7 @@ You can evaluate an HTTP request or response header for the presence of a header
148150

149151
## Limitations
150152

151-
- If a response has more than one headers with the same name, then rewriting the value of one of those headers will result in dropping the other headers in the response. This can usually happen with Set-Cookie header since you can have more than one Set-Cookie header in a response. One such scenario is when you are using an app service with an application gateway and have configured cookie-based session affinity on the application gateway. In this case the response will contain 2 Set-Cookie headers: one used by the app service, i.e., `Set-Cookie: ARRAffinity=ba127f1caf6ac822b2347cc18bba0364d699ca1ad44d20e0ec01ea80cda2a735;Path=/;HttpOnly;Domain=sitename.azurewebsites.net` and another for application gateway affinity, i.e., `Set-Cookie: ApplicationGatewayAffinity=c1a2bd51lfd396387f96bl9cc3d2c516; Path=/`. Rewriting one of the Set-Cookie headers in this scenario can result in removing the other Set-Cookie header from the response.
153+
- If a response has more than one header with the same name, then rewriting the value of one of those headers will result in dropping the other headers in the response. This can usually happen with Set-Cookie header since you can have more than one Set-Cookie header in a response. One such scenario is when you are using an app service with an application gateway and have configured cookie-based session affinity on the application gateway. In this case the response will contain two Set-Cookie headers: one used by the app service, for example: `Set-Cookie: ARRAffinity=ba127f1caf6ac822b2347cc18bba0364d699ca1ad44d20e0ec01ea80cda2a735;Path=/;HttpOnly;Domain=sitename.azurewebsites.net` and another for application gateway affinity, for example, `Set-Cookie: ApplicationGatewayAffinity=c1a2bd51lfd396387f96bl9cc3d2c516; Path=/`. Rewriting one of the Set-Cookie headers in this scenario can result in removing the other Set-Cookie header from the response.
152154

153155
- Rewriting the Connection, Upgrade, and Host headers isn't currently supported.
154156

0 commit comments

Comments
 (0)