Skip to content

Commit 5a04e3b

Browse files
Merge pull request #217865 from JackStromberg/patch-91
Feature must require blob storage
2 parents 9230623 + 9af5453 commit 5a04e3b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/application-gateway/custom-error.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ services: application-gateway
55
author: greg-lindsay
66
ms.service: application-gateway
77
ms.topic: how-to
8-
ms.date: 04/12/2022
8+
ms.date: 11/09/2022
99
ms.author: greglin
1010
ms.custom: devx-track-azurepowershell
1111
---
@@ -21,7 +21,7 @@ Custom error pages are supported for the following two scenarios:
2121
- **Maintenance page** - This custom error page is sent instead of a 502 bad gateway page. It's shown when Application Gateway has no backend to route traffic to. For example, when there's scheduled maintenance or when an unforeseen issue effects backend pool access.
2222
- **Unauthorized access page** - This custom error page is sent instead of a 403 unauthorized access page. It's shown when the Application Gateway WAF detects malicious traffic and blocks it.
2323

24-
If an error originates from the backend servers, then it's passed along unmodified back to the caller. A custom error page isn't displayed. Application gateway can display a custom error page when a request can't reach the backend.
24+
If an error originates from backend targets of your backend pool, the error is passed along unmodified back to the caller. Custom error pages will only be displayed when a request can't reach the backend or when WAF is in prevention mode and blocks the request.
2525

2626
Custom error pages can be defined at the global level and the listener level:
2727

@@ -36,10 +36,14 @@ To create a custom error page, you must have:
3636
- error page should be internet accessible and return 200 response.
3737
- error page should be in \*.htm or \*.html extension type.
3838
- error page size must be less than 1 MB.
39+
- error page must be hosted in Azure blob storage
3940

40-
You may reference either internal or external images/CSS for this HTML file. For externally referenced resources, use absolute URLs that are publicly accessible. Be aware of the HTML file size when using internal images (Base64-encoded inline image) or CSS. Relative links with files in the same location are currently not supported.
41+
You may reference either internal or external images/CSS for this HTML file. For externally referenced resources, use absolute URLs that are publicly accessible. Be aware of the HTML file size when using base64-encoded inline images, javascript, or CSS.
4142

42-
After you specify an error page, the application gateway downloads it from the defined location and saves it to the local application gateway cache. Then, that HTML page is served by the application gateway, whereas the externally referenced resources are fetched directly by the client. To modify an existing custom error page, you must point to a different blob location in the application gateway configuration. The application gateway doesn't periodically check the blob location to fetch new versions.
43+
> [!Note]
44+
> Relative links with files in the same location are not supported.
45+
46+
After you specify an error page, application gateway verifies internet connectivity to the file and will save the file to the local application gateway cache. The HTML page will be served by the application gateway, whereas externally referenced resources (such as images, javascript, css files) are fetched directly by the client. To modify an existing custom error page, you must point to a different blob location in the application gateway configuration. Application gateway doesn't periodically check the blob location to fetch new versions.
4347

4448
## Portal configuration
4549

0 commit comments

Comments
 (0)