系統更版
發表於 : 週二 8月 16, 2016 2:59 pm
IIS Master web.config
代碼: 選擇全部
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to port 1234" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="^ON$" negate="true" />
<add input="{SERVER_PORT}" pattern="^1234$" negate="true" />
</conditions>
<action type="Rewrite" url="http://{HTTP_HOST}:1234/{R:0}" appendQueryString="true" logRewrittenUrl="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>