0
我在URL重寫中設置了HTTPS重定向。一切正常,但我需要排除一些不包含在SSL中的Web服務的服務器端口。IIS 8.5 URL使用Web服務異常重寫
<rewrite>
<rules>
<rule name="HTTPS Redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{SERVER_PORT}" pattern="1010" />
<add input="{SERVER_PORT}" pattern="1212" />
<add input="{HTTPS}" pattern="^OFF$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
</rule>
</rules>
</rewrite>
當我添加服務器端口異常,Web服務工作,但我沒有得到我的重定向的http調用。