Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I indicate to users that my IIS website is undergoing maintenance?

Tags:

redirect

iis

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.

like image 610
Clift Norris Avatar asked Nov 18 '08 22:11

Clift Norris


1 Answers

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

More info here.

like image 166
LordHits Avatar answered Sep 19 '22 22:09

LordHits