0

I would like to have a setup where I can tell any of two servers to be the "main"-server on a specific IP (for redundancy reasons). Both servers should be accessible at any given time but only one should respond to public IP.

IP-restriction is because of infrastructure dependencies beyond my control.

Toft
  • 1
  • 1

2 Answers2

2

Sounds like a job for windows Network Load Balancing service. Which doesn't necessarily do load balancing, you can specify a primary node and just use the secondary node for failover.

NLB is fairly straight forward to configure, you need 3 IP address in total (one per server and a virtual IP for the web service).

http://technet.microsoft.com/en-us/library/bb742455.aspx

HampusLi
  • 3,478
  • 17
  • 14
0

I believe I found a rather simple solution that will work for us: http://www.localwisdom.com/blog/2010/02/iis-7-reverse-proxy-share-1-ip-with-multiple-webservers/

Excerpt: Modules: ARR, URL rewriter

“For a very simple reverse proxy, all you have to do is:

  1. Select the server node on inetmgr.

  2. Double click on Application Request Routing icon.

  3. Select/check “Enable proxy”.

  4. Select/check “Use URL Rewrite to inspect incoming requests.

  5. Enter the server of where you want to route the request to in “Reverse proxy” – ie. (myserver.contoso.com).

Our setup would be: www1, www2 - internal names for servers, these are referenced by separate IIS7 instance (responding to public IP and domain) which reverse proxies www1 or www2 as we please. ARR can be scripted too which would enable us to implement event-driven scenarios.

Toft
  • 1
  • 1