如何处理 Azure WebApp 中的中断图像
How to handle Outage images in Azure WebApp
我们在 Azure 中托管我们的网站。在部署 (TFS) 期间,我们将执行以下步骤作为部署管道的一部分。
- 停止 WebApp
- 部署网络应用服务
- 启动 WebApp
第一步之后,如果有人试图访问我们的网站,那么默认情况下 Azure 将return下面的页面
我们真的不希望我们的用户在中断期间显示此页面。在这种情况下,我们计划展示我们自己的中断 image/page。
有什么办法可以实现吗?
自从 Azure Web Apps 在 PaaS 模型中,我想知道如何做到这一点?
感谢任何意见!
目前似乎不支持自定义错误页面。 feedback 允许用户为 403 和 503 服务不可用消息创建自定义错误页面。
我认为你可以投票支持这个功能的实现。
在这里添加一些关于我自己的问题的解决方案的信息,
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 For #2, there is currently no way for you to customize the pages returned by Azure.
谢谢,@David Ebbo and @SamJolly
我们在 Azure 中托管我们的网站。在部署 (TFS) 期间,我们将执行以下步骤作为部署管道的一部分。
- 停止 WebApp
- 部署网络应用服务
- 启动 WebApp
第一步之后,如果有人试图访问我们的网站,那么默认情况下 Azure 将return下面的页面
我们真的不希望我们的用户在中断期间显示此页面。在这种情况下,我们计划展示我们自己的中断 image/page。
有什么办法可以实现吗?
自从 Azure Web Apps 在 PaaS 模型中,我想知道如何做到这一点?
感谢任何意见!
目前似乎不支持自定义错误页面。 feedback 允许用户为 403 和 503 服务不可用消息创建自定义错误页面。
我认为你可以投票支持这个功能的实现。
在这里添加一些关于我自己的问题的解决方案的信息,
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 For #2, there is currently no way for you to customize the pages returned by Azure.
谢谢,@David Ebbo and @SamJolly