I am at a loss as to how to present a custom error page, with professional branding, for errors covering:
403 - Wep App stopped - currently get blue page with Azure text.
503 - Service Unavailable - currently get white page with "service unavailable"
I have tried to use CloudFlare custom error pages, but this does not work. For a 403, traffic still gets routed throught to Azure, where it gets the standard Azure 403 Page.
Must be possible?
There are two categories of HTTP errors that can happen on Azure Web Apps:
- Those that happen in IIS on the Web Worker where your site is running.
- Those that happen before it reaches that. This includes cases when the site is stopped, in the process of restarting, or potentially affected by some other issue in the system.
One way to tell if an error is #1 or #2 is to turn on http logging, and see if it gets logged. Only #1 will.
For #1, you can customize errors using standard techniques. But for #2, there is currently no way for you do customize the pages returned by Azure.
来源:https://stackoverflow.com/questions/32760302/how-to-customise-azure-web-app-403-503-error-pages