如何在部署过程中显示出维护页面? [英] How to show maintenance page during deployment?

查看:213
本文介绍了如何在部署过程中显示出维护页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想规划一个时间表停机维护时间IIS上承载的窗口我的生产asp.net网站的一台服务器2003。

I want to plan a schedule maintenance down time on one of my production asp.net website hosted on IIS windows server 2003.

我觉得这是preferred行为:

I think this is the preferred behavior:


  1. http://www.x.com 所有要求,包括www.x.com/asb/asd/将被重定向到通知页面(网站目前下跌。回来以后)

  2. 维修将花费大约一个小时。我怎么保证有这个重定向到维护页面有至少影响搜索引擎优化/谷歌排名

  3. preferrably我希望能够悄悄地测试生产现场,又回到之前的实况

  4. preferrably我不想依靠其他DNS指向

  5. 要使它简单,请pretend,我没有任何其他硬件在web服务器的前端(即负载均衡,防火墙等)

  1. All request to http://www.x.com including www.x.com/asb/asd/ will be redirected to a notification page (site is currently down. come back later)
  2. The maintenance will take around an hour. how do I ensure for having this redirection to maintenance page to have the least impact to SEO/google ranking
  3. Preferrably I want to be able to quietly test the production site before it goes back 'live'
  4. Preferrably I dont want to rely on pointing DNS elsewhere.
  5. To make it simple please pretend that I don't have any other hardware in front of the web servers (i.e load balancer, firewall etc)

一个想法是:


  1. 要创建相同的Web服务器上的另一个应用程序

  2. 创建的HttpModule或HttpHandler的处理任何URL请求和302重定向到维护页

感谢

推荐答案

尝试把 App_Offline的.htm 到根目录。

这篇关于如何在部署过程中显示出维护页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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