Reputation: 45761
I asked this question before and I already know how to use ISA Server 2006 to implement this function, my current question is how to implement the same function without using ISA Server but using pure IIS only. Does anyone have any ideas?
My development/deployment environment is, IIS + Windows Server 2003/2008 + .Net + VSTS2008 + C#. I have several web sites, each of them has stable and beta version, for example, I have beta version order system and stable version order system, the same as purchase system. I deployed the 4 systems on 4 different physical machines (machine name labvm1, labvm2, labvm3 and labvm4).
My requirement is, I want to have a common URL schema to access the different systems, like,
http://www.mycorp.com/order/beta
http://www.mycorp.com/order/stable
http://www.mycorp.com/purchase/beta
http://www.mycorp.com/purchase/stable
But since the 4 systems are deployed on 4 different physical machines with different machine/DNS name, how could I map the same domain (http://www.mycorp.com) with different suffix to different physical online systems?
thanks in advance, George
Upvotes: 1
Views: 1667
Reputation: 192417
IIRF v2.0 supports a reverse proxy feature. With this feature you can can map a set of servers into a single URI namespace, hiding the internal machine names of the mapped resources.
IIRF is free, and works with IIS6 and 7.
Upvotes: 0
Reputation: 1004
IIS7 URL Rewriting module does not currently support reverse proxy functionality so you'd better use ISAPI-Rewrite 3 or Helicon Ape mod-proxy module. The config for ISAPI_Rewrite will be similar to what Ariel provided:
RewriteBase /
RewriteProxy ^purchase/beta/(.*)$ http://192.168.0.12:8080/$1
And the config for Ape (Ape is designed specifically for IIS7) is:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /purchase/beta/(.*) http://192.168.0.12:8080/$1
Upvotes: 1
Reputation: 4875
One way is setting up a URL rewriting module with a Proxy function in the root server (the one at www.mycorp.com). The one I know is a commercial product from Helicon Tech, ISAPI Rewrite. Check the documentation at http://www.isapirewrite.com/docs/#RewriteProxy. They basically implemented all the features from the Apache Rewriting mod using the same syntax.
You would set rules like: RewriteProxy ^purchase/beta/(.*)$ http://192.168.0.12:8080/$1
Upvotes: 1