当网站停止在IIS显示维护页面HTML时 [英] When website is stop on IIS show maintenance page HTML
本文介绍了当网站停止在IIS显示维护页面HTML时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当站点在IIS上停止时。我需要显示一些维护页面
i已尝试在IIS上使用错误页面但它不适用于我
When Site stop on IIS. I need to display some maintenance page
i have tried using "error-page" on IIS but its not working for me
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/maintenance.html" responseMode="ExecuteURL" />
</httpErrors>
i在我的web.config中添加了这个仍然是不工作
你有什么想法吗?
我尝试了什么:
i尝试使用
i added this in my web.config still it is not working
Do you have any idea !
What I have tried:
i tried using
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/maintenance.html" responseMode="ExecuteURL" />
</httpErrors>
但它根本不起作用
but it's not working at all
推荐答案
ScottGu的博客 - App_Offline.htm [ ^ ]
<pre lang="c#">
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/maintenance.html" responseMode="ExecuteURL" />
</httpErrors>
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath="" path="/maintenance.html" responseMode="ExecuteURL" />
</httpErrors>
这篇关于当网站停止在IIS显示维护页面HTML时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文