我想在 IIS Windows Server 2003 上托管的我的生产 asp.net 网站上计划一个维护停机时间。
我认为这是首选行为:
- 所有请求 http://www.x.com 包括 www.x.com/asb/asd/ 将被重定向到通知页面(网站当前已关闭,稍后再回来)
- " 大约需要一个小时。 我如何确保此重定向到维护页面对 SEO/google 排名的影响最小
- 最好我希望能够在生产站点返回“实时”之前悄悄地测试它
- 最好我不想依赖于在其他地方指向 DNS 。
- 为了简单起见,请假装我的 Web 服务器前面没有任何其他硬件(即负载均衡器、防火墙等)
一个想法是:
- 在同一 Web 服务器上创建另一个应用程序,
- 创建 httpmodule 或 httphandler 来处理任何url请求和302重定向到维护页面
谢谢
I want to plan a schedule maintenance down time on one of my production asp.net website hosted on IIS windows server 2003.
I think this is the preferred behavior:
- 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)
- 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
- Preferrably I want to be able to quietly test the production site before it goes back 'live'
- Preferrably I dont want to rely on pointing DNS elsewhere.
- 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)
An idea would be:
- to create another app on the same web server
- create httpmodule or httphandler to handle any url request and 302 redirect them to the maintenance page
Thanks
发布评论
评论(2)
尝试将 App_Offline.htm 放入根目录。
Try putting App_Offline.htm to the root directory.
将 app_offline.htm 文件复制到 Webroot
http://weblogs。 asp.net/scottgu/archive/2005/10/06/426755.aspx
copy an app_offline.htm file to the webroot
http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx