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

社会主义新天地 提交于 2019-11-29 09:55:44

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!