如何向用户表明我的IIS网站正在维护中? [英] How can I indicate to users that my IIS website is undergoing maintenance?

查看:236
本文介绍了如何向用户表明我的IIS网站正在维护中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的IIS网站,我想将所有请求重定向到一页.目的是要对所有Web应用程序使用的数据库进行一些维护(将其脱机).我有大约50个Web应用程序在此网站下运行,所以我希望避免访问每个应用程序进行更改.我在想可以对machine.config进行一次更改?任何提示将不胜感激.

For my IIS website, I'd like to redirect ALL requests to ONE page. The purpose of this is that I want to do some maintenance on the database (take it off-line) that all my web applications use. I have about 50 web apps running under this website, so I'd like to avoid visiting each of them to change something. I'm thinking I could make a single change in machine.config? Any hints would be appreciated.

推荐答案

如果您使用的是ASP.NET 2.0(或更高版本),则可以在根目录上放置一个app_offline.htm页面.

If you are using ASP.NET 2.0 (or higher), you can drop an app_offline.htm page on the root.

此处有更多信息.

这篇关于如何向用户表明我的IIS网站正在维护中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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