IIS URL Rewrite domain to one of several VMs
<p>I have a server running several Virtual Machines. Each VM runs IIS 8.0 and hosts a variety of different sites.  The base server is also running IIS 8.0 and I'm intending that it directs requests to one of of the VMs depending on the HTTP_HOST.</p>

<p>I'm trying to define the inbound and outbound rules to achieve the following:</p>

<pre><code>www.mydomain1.com requests are directed to VM 192.168.1.10/mydomain1

www.mydomain2.com requests are directed to VM 192.168.1.10/mydomain2

www.mydomain3.com requests are directed to VM 192.168.1.11/mydomain3 

www.mydomain4.com requests are directed to VM 192.168.1.11/mydomain4
</code></pre>

<p>What I want is for the user to see www.mydomainx.com all the time while the internal VM serves up the pages seamlessly without changing the URL.  I've spent hours trying every combination I can think of and read dozens of posts but none seem to cover this particular scenario.</p>

<p>I've got subdomain to folder working (mysub.mydomain.com -> 192.168.1.10/mysub but not full domain name.  </p>

<p>Any suggestions gratefully received.</p>