<rewrite>
<rules>
<rule name="WebSocket Proxy" stopProcessing="true">
<match url="^WebSocket(/.*)?$" />
<action type="Rewrite" url="http://localhost:9001/WebSocket{R:1}" />
</rule>
</rules>
</rewrite>
安装ARR,安装UrlRewriter
IIS 管理器 → 点服务器根节点(不是站点)→ Application Request Routing Cache → 右侧 Server Proxy Settings → 勾选 Enable proxy → Apply
