【发布时间】:2020-03-11 14:04:02
【问题描述】:
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="^a/(.*)" />
<action type="Rewrite" url="http://localhost:8086/{R:1}" />
</rule>
<rule name="ReverseProxyInboundRule2" stopProcessing="true">
<match url="^b/(.*)" />
<action type="Rewrite" url="http://localhost:8085/{R:1}" logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>
在任何时间点,只有一个规则有效,另一个规则会给出 404 错误。 如果http://localhost/a/xxx 有效,则http://localhost/b/yyy 给出404 错误。
【问题讨论】:
标签: iis url-rewriting reverse-proxy arr