Create a Server Farm on IIS

When I deploy the Node.js apps on a Windows machine, I need to utilize IIS to balance the loads.

At first, I thought creating server farms with ARR could be a good option. After many experiments, I realized that the server farm setup is to route between two different servers, not on one machine.

However, I still want to document my experiments in case we have the need in the future. It might be helpful if we want to bind multiple domains with different servers. 

Prerequisites

Steps

Creating a server farm

   

Rewriting URL at server level

 

Domain binding (an example from dpw-cipgis)

 

https://serverfault.com/questions/340125/is-it-possible-to-setup-load-balancing-for-2-apps-running-on-the-same-server

https://adamtuttle.codes/add-node-to-existing-iis-server/