Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
通过IIS ARR代理流星网匣_Iis_Meteor_Proxy_Websocket_Arr - Fatal编程技术网

通过IIS ARR代理流星网匣

通过IIS ARR代理流星网匣,iis,meteor,proxy,websocket,arr,Iis,Meteor,Proxy,Websocket,Arr,我们需要通过IIS代理代理Meteor。IIS站点接受特定Meteor网站的绑定,并将请求代理到备用端口 Web套接字不工作,Meteor正在恢复为XHR Web.Config文件如下所示: <rule name="Meteor reverse proxy" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{CACHE_URL}" p

我们需要通过IIS代理代理Meteor。IIS站点接受特定Meteor网站的绑定,并将请求代理到备用端口

Web套接字不工作,Meteor正在恢复为XHR

Web.Config文件如下所示:

<rule name="Meteor reverse proxy" stopProcessing="true">
    <match url="(.*)" />
    <conditions>
        <add input="{CACHE_URL}" pattern="^(.+)://" />
    </conditions>
    <action type="Rewrite" url="{C:1}://127.0.0.1:8008/{R:1}" />
</rule>

直接:

MS文档建议在与NodeJ一起使用时禁用WebSocket。更新此设置没有帮助。

有人遇到过这个问题吗

更新
您会注意到上面的标题引用了ARR2.5,此版本不支持web套接字。代理套接字需要3.0。

通过其他方法测试代理后,ARR成功代理web套接字。为了解决这个问题,我们在Meteor中禁用了对web套接字的压缩

SERVER_WEBSOCKET_COMPRESSION environment variable to 0

可能是个愚蠢的问题,但您是否在IIS中启用了websocket?相关:websocket已安装,但我尚未在IIS中明确启用它。此处的说明:在同一页的“问题”下,它指出如果您在nodejs中使用websocket.io,则需要禁用iis默认websocket。你试过了吗?不,我不想禁用它。