我们正在尝试从asp.net应用程序https://App_A/到http://App_B/实施反向代理入站规则
站点App_A-web.config重写规则
<rules>
<rule name="ReverseProxyInbound" enabled="true" stopProcessing="true">
<match ="^webapp/(*.)" />
<action type="Rewrite" logRewrittenUrl="true" url="http://App_B/webapp/{R:1}" />
</rule>
</rules>
出站规则:
<rule name="Rewrite Relative path">
<match filterbyTag="A,Area,Base,Form,Frame,Head,IFrame,Input,Link,Script" pattern="http://App_B/webapp/(.*)" />
<action type="Rewrite" value="https://App_A/Webap/{R:1}" />
</rule>
ScriptResource.axd似乎遇到500 URL重写模块错误,如下所示:
试图同时使用web.config重写规则,但是已经碰壁了,不熟悉重写内容