如何在部署期间显示维护页面? [英] How to show maintenance page during deployment?

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

问题描述

我想为我在 IIS Windows Server 2003 上托管的一个生产 asp.net 网站计划一个计划维护停机时间.

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

我认为这是首选行为:

  1. http://www.x.com 的所有请求,包括 www.x.com/asb/asd/将被重定向到通知页面(网站目前已关闭.稍后返回)
  2. 维护大约需要一个小时.我如何确保将此重定向到维护页面对 SEO/谷歌排名的影响最小
  3. 我希望能够在生产站点恢复实时"之前安静地对其进行测试
  4. 最好我不想依赖将 DNS 指向其他地方.
  5. 为了简单起见,请假装我在 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. 在同一网络服务器上创建另一个应用
  2. 创建 httpmodule 或 httphandler 来处理任何 url 请求并 302 将它们重定向到维护页面

谢谢

推荐答案

尝试把 App_Offline.htm 到根目录.

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

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