Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show maintenance page during deployment?

Tags:

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:

  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)

An idea would be:

  1. to create another app on the same web server
  2. create httpmodule or httphandler to handle any url request and 302 redirect them to the maintenance page

Thanks

like image 936
ronaldwidha Avatar asked May 04 '09 07:05

ronaldwidha


People also ask

How do I show maintenance page during deployment?

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.

How do I show the maintenance page in IIS?

In IIS (Internet Information Services), there are several options to put the website in the offline/maintenance mode. One of those options is to make use of the "app_offline. htm" file. Basically, we put a file named "app_offline.


2 Answers

Try putting App_Offline.htm to the root directory.

like image 61
Anton Gogolev Avatar answered Oct 10 '22 23:10

Anton Gogolev


copy an app_offline.htm file to the webroot

http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx

like image 23
Chad Grant Avatar answered Oct 11 '22 00:10

Chad Grant