如何向用户表明我的 IIS 网站正在进行维护? [英] How can I indicate to users that my IIS website is undergoing maintenance?
问题描述
对于我的 IIS 网站,我想将所有请求重定向到一个页面.这样做的目的是我想对所有 Web 应用程序使用的数据库(使其脱机)进行一些维护.我有大约 50 个网络应用程序在这个网站下运行,所以我想避免访问每个应用程序来更改某些内容.我在想我可以在 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屋!