hi, 保哥
我們最近用mvc4開發了一個mobile web,在local network下執行都很正常, 但當在dmz架設windows server並透過iis url rewrite時, image檔就抓不到, 所有的action點下去也不正常,請問到底是哪裏可能出問題? 謝謝
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="重寫規則1 針對 MobileReverseProxyMap" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{MobileReverseProxyMap:{HTTP_HOST}}" pattern="(.+)" />
</conditions>
<action type="Rewrite" url="http://{C:1}" appendQueryString="true" logRewrittenUrl="true" />
</rule>
</rules>
<rewriteMaps>
<rewriteMap name="MobileReverseProxyMap">
<add key="old-testurl" value="new-testurl" />
</rewriteMap>
</rewriteMaps>
</rewrite>
</system.webServer>
</configuration>