APP Offline.htm ..在生产部署时显示脱机页面 [英] APP Offline.htm.. display an offline page while production deployment
问题描述
Hey Guys,
这里需要一点帮助..
我需要显示一个自定义页面,如正在进行中部署,在我进行生产部署时的维护页面。
我有一个假想,我需要创建一些页面Appoffline.htm并将其放入c:/ inetpub / wwroot文件夹,以便IIS在进入应用程序之前先看到它。
我的问题是如何才能重定向到此页面我的部署而不是总是。
这是通过c#的方式吗?此外,IIS中需要更改任何设置吗?
此外,一旦部署完成,我需要再次转到我的主页而不是维护页面。
请建议一种方式。
我的应用程序也使用Windows身份验证。(这对appoffline的实现有什么不同吗?页面?)
谢谢!!
Sanman
Hey Guys,
A little help needed here..
I need to display a custom page like 'Deployment in progress', a maintance page while i do my production deployment.
I have a fake idea like i need to create some page Appoffline.htm and place it into c:/inetpub/wwroot folder so IIS see's it first before goin to the application.
My question is how can i redirect to this page only while i do my deployment and not always.
Is it a way through c#? Also any settings needed to be changes in IIS for this?
Also once deployment is completed i need to goto my homepage again and not the maintanance page.
Please suggest a way.
Also my application uses Windows authentication.(does this make any difference in implementation for appoffline page ?)
Thanks!!
Sanman
推荐答案
检查这些
将网站置于维护模式(正在建设中) [ ^ ]
将网站置于维护模式(正在建设中) [ ^ ]
网站正在维护中,请稍后访问: - ASP。 NET技巧 [ ^ ]
应用程序阻止 - ASP.NET网站维护 [ ^ ]
Check these
Put the website in Maintenance Mode (Under Construction)[^]
Put the website in Maintenance Mode (Under Construction)[^]
Site is under maintenance, please visit later: - ASP.NET trick[^]
Application Block - ASP.NET Website Maintenance[^]
只需删除
Just delete
Appoffline.htm
解决方案中的文件
File from your solution
这篇关于APP Offline.htm ..在生产部署时显示脱机页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!