How to customise Azure Web App 403, 503 error pages?

前端 未结 1 1072
渐次进展
渐次进展 2020-12-19 03:26

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 wit         


        
相关标签:
1条回答
  • 2020-12-19 04:10

    There are two categories of HTTP errors that can happen on Azure Web Apps:

    1. Those that happen in IIS on the Web Worker where your site is running.
    2. 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.

    0 讨论(0)
提交回复
热议问题