WebSocket配置IIS代理

<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

posted @ 2026-05-21 16:40  极客船长  阅读(0)  评论(0)    收藏  举报