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

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

问题描述

我想在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 / Google排名的影响最小?

  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. 在同一个Web服务器上创建另一个应用程序

  2. 创建httpmodule或httphandler来处理任何url请求,302将其重定向到维护页面

谢谢

推荐答案

App_Offline.htm 放在根目录下。

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

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