I have basic reverse proxys working but I would like to use Rewrite Maps as I potentially have many static pairs that I need to match, not conforming to a standard necessarily.
Currently I have the following rule.
<rewrite>
<rules>
<clear />
<rule name="ReverseProxy">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{StaticMap:{Request_URI}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="http://172.28.75.31:90{C:0}" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="StaticMap" defaultValue="/server/">
<add key="/server/xhtml/user/fi54321" value="/54321" />
<add key="/server/xhtml/user/fi12345" value="/12345" />
</rewriteMap>
</rewriteMaps>
</rewrite>
So basically I want http://mydomain.com/54321 to get rewritten to http://172.28.75.31:90/server/xhtml/user/fi54321
When I enter http://mydomain.com/54321 I get a 404. After putting in the defaultValue for the rewriteMap it hits that /server/ folder so it appears neither of the two map items actually matches.