Here is the scenario. We have ARR receiving requests for 2 distinct hostnames. We'll call then http://WEBAPP1 and http://WEBAPP2. Both host names have the same IP and resolve to the same ARR server.
WEBAPP1 and WEBAPP2 have 2 servers behind them. In ARR I have 4 web farms.
-
WEBAPP1A
-
WEBAPP1B
-
WEBAPP2A
-
WEBAPP2B
In my URL Rewrite rules, at the bottom is WEBAPP1A with a * wildcard. Everything that comes in to WEBAPP1 goes to WEBAPP1A by default.
The next rule is WEBAPP1B. It is a * wildcard rule with conditions. If you go to WEBAPP1/condition.htm (this is the REQUEST_URI in the condition) then you get routed to server WEBAPP1B. Otherwise you get routed to server WEBAPP1A.
Now this same ARR hosts WEBAPP2 - different host name.
I can create the next rule as a * wildcard and add a condition with HTTP_HOST to qualify the host name as WEBAPP2. This would be the default location for WEBAPP2 urls.
Now when I to route to WEBAPP2B, and I want to have multiple REQUEST_URIs in the conditions, I need to qualify the rule pattern with a regular expression to single out the host name. So if I want WEBAPP2/condition.htm to go to WEBAPP2B, I need to know how to write this expression. There doesn't seem to be a way to do this with * wildcards.
Any and all help is greatly appeciated.
Alan Levine
Progress Energy - Raleigh, NC