websocket反向代理可能与IIS 8.5和URL重写2.0?

我将Tomcat安装为IIS后面的Java应用程序服务器。 使用下面的规则,我可以重写静态页面,但很可惜,websocket连接永远不会build立:

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <webSocket enable="false"/> <rewrite> <rules> <rule name="Redirect HTTP to HTTPS" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTPS}" pattern="^OFF$" /> </conditions> <action type="Redirect" url="https://{HTTP_HOST}/foo/{R:1}" redirectType="SeeOther" /> </rule> <rule name="Redirect from IIS to Tomcat" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{CACHE_URL}" pattern="^(.*)://" /> </conditions> <action type="Rewrite" url="{C:1}://tomcat.contoso.com/foo/{R:1}" /> </rule> </rules> <outboundRules> <rule name="Redirect from Tomcat to IIS" preCondition="ResponseIsHtml"> <match filterByTags="A, Form, Img" pattern="^(.*)://tomcat.contoso.com/foo/(.*)" /> <action type="Rewrite" value="{R:1}://apps.contoso.com/foo/{R:2}" /> </rule> <preConditions> <preCondition name="ResponseIsHtml"> <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" /> </preCondition> </preConditions> </outboundRules> </rewrite> </system.webServer> </configuration> 

有人有这个成功吗? URL重写甚至支持websockets(ws://&wss://)反向代理吗?