• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1100
  • Last Modified:

IIS redirect when web server is offline.

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.
0
Spikeuk30
Asked:
Spikeuk30
  • 4
  • 4
  • 2
  • +1
3 Solutions
 
Aaron TomoskyTechnology ConsultantCommented:
Are these LAN or wan connections hitting the site? If they are wan, you can just edit the firewall to point the wan ip to the maintenance vm ip while you do maintenance
0
 
kevinhsiehCommented:
I second the idea of changing the NAT rules on the firewall to point traffic top the maintenance VM. A benefit is that there is only one place to make the changes.
0
 
Spikeuk30Author Commented:
That sounds good - how quickly do NAT changes take effect?  I guess instantly as its all internal?

I have to check if this is possible as we have a hosted virtual environment, im not sure if we could get access to change the NATs themselves.
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
arnoldCommented:
Since you are using VMs, clustering is a way to minimize downtime while having the flexibility to do whatever it is that you need.

What exactly leads to the need to bring down IIS?

Or you are bringing a single site down?

You can have a default web site on IIS that detects the requested URL and outputs, sorry this site http://www.requestedsite.com  is currently under maintenance.

As soon as the site is started, the requests will flow to it.

IIS setup:
Default site
Site1
Site2
Site3


Note the NAT rule change as suggested on the firewall only works when when the individual sites have their own Dedicated IP

Ip1 site1
Ip2 site2

Etc.
0
 
Aaron TomoskyTechnology ConsultantCommented:
Depending on where you are hosted, rackspace for example offers firewall services
0
 
Spikeuk30Author Commented:
We have to bring IIS down particularly when applying windows updates to perform a reboot.

We use a lot of SSL certifitcates which require a unique IP so the NAT change method would work but would be fiddely as we have to ask our host to change the NAT.
0
 
arnoldCommented:
Having two systems that function as a cluster will allow you to perform maintenance on one while the other is working.

It does make this extremely difficult when you have to rely on an external resource to transition.
0
 
Spikeuk30Author Commented:
is it possible to 'miss use' windows load balancer to configure multiple webservers on different subnets to load balance against the same single iis server running a maintenance page.

I would effectively disable load balancing until I want to fail over for maintenance, then enable it and set the maintenance weberserver as active.

Can i effectively load balance the webservers if the site content is different between the two, i would presume load balancing only goes as far as to redirect traffic to an alt IP address it doesnt look any deeper?
0
 
arnoldCommented:
It does not look at the content, it does check whether the members of the load-balancing group are avalable to avoid directing traffic to a down system.  Content/malfunctioning site would still be receiving load balanced redirected traffic.


There are many way to achieve what you need, you need to first define what options are available to you.
0
 
Spikeuk30Author Commented:
ok no funds and not enough time to create duplicate database /iis servers.

However we could create 1 additional webserver only hosting offline webpages....
0
 
arnoldCommented:
If you are setting up an additional web server, use plain/simple asp to detect the URL being requested and out put the The site you requested HTTP_URL.

If you must output custom content per site, using a single page with dynamic data within an express version of SQL, etc.  Might be the simplest.

This way you can point everything to one location when needed.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 4
  • 4
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now