Skip to content

Commit b612565

Browse files
committed
updates
1 parent 7f797eb commit b612565

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/app-service/networking/app-gateway-with-service-endpoints.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ az webapp config access-restriction add --resource-group myRG --name myWebApp --
9393
```
9494

9595
## Considerations when using default domain
96-
Configuring Application Gateway to override the host name and use the default domain of App Service (typically `azurewebsites.net`) is the easiest way to configure the integration and doesn't require configuring custom domain and certificate in App Service. [This article](https://learn.microsoft.com/azure/architecture/best-practices/host-name-preservation) discusses the general considerations when overriding the original host name. In App Service, there are two scenarios where you need to pay attention with this configuration.
96+
Configuring Application Gateway to override the host name and use the default domain of App Service (typically `azurewebsites.net`) is the easiest way to configure the integration and doesn't require configuring custom domain and certificate in App Service. [This article](/azure/architecture/best-practices/host-name-preservation) discusses the general considerations when overriding the original host name. In App Service, there are two scenarios where you need to pay attention with this configuration.
9797

98-
### Authentication (Easy Auth)
99-
When you're using [the authentication feature](../overview-authentication-authorization.md) in App Service, your app will typically redirect to the sign-in page. Because App Service doesn't know the original host name of the request, the redirect would be done on the default domain name and usually result in an error. To work around default redirect, you can configure authentication to inspect a forwarded header and adapt the redirect domain to the original domain. Application Gateway uses a header called `X-Original-Host`.
98+
### Authentication
99+
When you're using [the authentication feature](../overview-authentication-authorization.md) in App Service (also known as Easy Auth), your app will typically redirect to the sign-in page. Because App Service doesn't know the original host name of the request, the redirect would be done on the default domain name and usually result in an error. To work around default redirect, you can configure authentication to inspect a forwarded header and adapt the redirect domain to the original domain. Application Gateway uses a header called `X-Original-Host`.
100100
Using file-based configuration to configure authentication, you can configure App Service to adapt to the original host name. Add this configuration to your configuration file:
101101

102102
```json
@@ -105,7 +105,7 @@ Using file-based configuration to configure authentication, you can configure Ap
105105
"httpSettings": {
106106
"forwardProxy": {
107107
"convention": "Custom",
108-
"customHostHeaderName": "X-Forwarded-Host"
108+
"customHostHeaderName": "X-Original-Host"
109109
}
110110
}
111111
...

0 commit comments

Comments
 (0)