Add configuration information for Azure

Azure static websites are an option for publishing your Hugo site, and this is how you configure the 404 page. More details and instructions linked in the edit to https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website
This commit is contained in:
Duncan Mackenzie 2019-04-30 13:41:04 -07:00 committed by Bjørn Erik Pedersen
parent 5b7c6b5a17
commit 1a44d8a50a
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F

View File

@ -53,6 +53,7 @@ Your 404.html file can be set to load automatically when a visitor enters a mist
* Amazon CloudFont. You can specify the page in the Error Pages section in the CloudFont Console. [Details here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html) * Amazon CloudFont. You can specify the page in the Error Pages section in the CloudFont Console. [Details here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/custom-error-pages.html)
* Caddy Server. Using `errors { 404 /404.html }`. [Details here](https://caddyserver.com/docs/errors) * Caddy Server. Using `errors { 404 /404.html }`. [Details here](https://caddyserver.com/docs/errors)
* Netlify. Add `/* /404.html 404` to `content/_redirects`. [Details Here](https://www.netlify.com/docs/redirects/#custom-404) * 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).
{{% note %}} {{% note %}}
`hugo server` will not automatically load your custom `404.html` file, but you `hugo server` will not automatically load your custom `404.html` file, but you