From 35fc54362f370a51ab02b289134b232d05ea285b Mon Sep 17 00:00:00 2001 From: Thijs De Meester Date: Wed, 26 May 2021 14:00:30 +0200 Subject: add Azure Static Web App config to 404 template add Azure Static Web App specification to Automatic loading spec Reword Azure Storage option to further differentiate between hosting in Azure Storage and using Azure Static Web Apps --- content/en/templates/404.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/templates/404.md b/content/en/templates/404.md index 5a7da35c5..81c4c38bd 100644 --- a/content/en/templates/404.md +++ b/content/en/templates/404.md @@ -52,7 +52,8 @@ Your 404.html file can be set to load automatically when a visitor enters a mist * Amazon CloudFront. You can specify the page in the Error Pages section in the CloudFront Console. [Details here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) * Caddy Server. Use the `handle_errors` directive to specify error pages for one or more status codes. [Details here](https://caddyserver.com/docs/caddyfile/directives/handle_errors) * Netlify. Add `/* /404.html 404` to `content/_redirects`. [Details Here](https://www.netlify.com/docs/redirects/#custom-404) -* Azure Static website. You can specify the `Error document path` in the Static website configuration page of the Azure portal. [More details are available in the Static website documentation](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website). +* Azure Static Web App. set `responseOverrides.404.rewrite` and `responseOverrides.404.statusCode` in configfile `staticwebapp.config.json`. [Details here](https://docs.microsoft.com/en-us/azure/static-web-apps/configuration#response-overrides) +* Azure Storage as Static Web Site Hosting. You can specify the `Error document path` in the Static website configuration page of the Azure portal. [Details here](https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website). * DigitalOcean App Platform. You can specify `error_document` in your app specification file or use control panel to set up error document. [Details here](https://docs.digitalocean.com/products/app-platform/how-to/manage-static-sites/#configure-a-static-site). * [Firebase Hosting](https://firebase.google.com/docs/hosting/full-config#404): `/404.html` automatically gets used as the 404 page. -- cgit v1.2.3