处理504网关超时错误 [英] Handle 504 Gateway timeout error

查看:202
本文介绍了处理504网关超时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们的ASP.NET应用程序使用Azure的MFA。在数据同步期间,当Azure服务器无法访问App Server并返回504 Gateway Timeout Error时,服务器CPU将持续100分钟或2分钟。


我想知道我们是否可以显示一个自定义错误页面,说有数据同步正在进行,请在5分钟后尝试。由于App Server不可用,此页面必须驻留在其他位置。因此,我们可以在Azure中设置另一个URL,以便在发生504
错误时显示此消息。


谢谢!

解决方案

您可以设置单独的插槽以在发生同步时重定向并添加自定义错误消息。  https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots

Hi,

Our ASP.NET application uses Azure's MFA. During data sync the server CPU goes 100% for a minute or 2 when Azure server is unable to reach App Server and returns 504 Gateway Timeout Error.

I'd like to know if we can show a custom error page saying there's Data Sync going on please try after 5 mins. This page has to reside elsewhere as the App Server is unavailable. Therefore can we setup another URL in Azure to show this message whenever 504 error occurs.

Thanks!

解决方案

You may be able to set up a separate slot to redirect when the sync occurs and add a custom error message. https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots


这篇关于处理504网关超时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆