更改停止Azure Web应用程序的登录页面 [英] Change the landing page for when a Azure web app is stopeed
问题描述
当我们将代码部署到Azure Web应用程序时,我们将停止并 启动站点-在此期间Azure显示蓝色的403页面-可以将该页面更改为我们托管的内容-即.维护页面?
when we deploy our code to Azure web app, we stop and start the sites - during that time Azure displays a blue 403 page - can that page be changed to something we host - ie. a maintenance page?
我认为Azure Web应用程序应支持此功能,以便为PaaS服务提供更好的自定义.
I think this should be supported for Azure web app to provide better customization for PaaS service.
VireshMathapati13
VireshMathapati13
推荐答案
反馈项 关于使用户能够为403和503服务不可用消息创建自定义错误页面,我建议您提供此功能的反馈和支持
There is a feedback item on enabling users to create custom error pages for 403 and 503 service unavailable messages, I would suggest you, provide your feedback and upvote for this feature.
您可以还将以下配置添加到您的web.config文件中,看看它是否可以解决您的问题.
<httpErrors errorMode="Custom" allowAbsolutePathsWhenDelegated="true">
<remove statusCode="403" />
<error statusCode="403" path="%HOME%\site\wwwroot\errors\403.htm" />
</httpErrors>
- -------------------------------------------------- --------------------------------------
如果此答案有帮助,请单击标记为答案"或上投票".要提供有关您的论坛体验的其他反馈,请单击
span> .
------------------------------------------------------------------------------------------
If this answer was helpful, click "Mark as Answer" or "Up-Vote". To provide additional feedback on your forum experience, click
here.
这篇关于更改停止Azure Web应用程序的登录页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!