IIS redirect when web server is offline.
Posted on 2014-02-13
We have a number of W2k8 IIS webservers on different subnets hosting multiple sites each in a virtual environment VMWare /ESX
Occasionally we have to take a webserver offline to install updates / perform maintenance.
During this time we would like to redirect users to a maintenance page - but the trouble is the webserver will be offline....
I have looked at a reverse proxy which could set in front of the webservers but this is a single point of failure - for all of our clients? - also all traffic would have to go through this machine - a bottle neck? we do not want this to go down this route..
I did a test and created a virtual machine running IIS with a single holding page on, I could then edit the IP credentials to match that of the site I was performing maintenance on and bring it online/ take offline the real site. This appears to work and it is instant but most of our servers have multiple clients so i would have to mess about for 30 mins or so adding IP address etc.
Is there a better alternative? As i said this is a virtual environment ideally we want a small IIS VM we can keep powered off until we need it.
alternatively is there any way of scripting the IP address adding to the ethernet adaptor? so we could just run a script according to which client we want to take down and the IPs are added to the maintenance holding page IIS VM machine.
Any help or pointers would be greatly appreciated.