首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Atmosphere Nginx as https->http forwarder - websocket不工作

Atmosphere Nginx as https->http forwarder - websocket不工作
EN

Stack Overflow用户
提问于 2013-04-23 15:21:06
回答 1查看 897关注 0票数 0

我正在使用Nginx将https转换为http,从客户端到服务器。

我有一个大气配置,在没有这个转发的情况下,在websocket中工作得很好。

现在,如果我切换到中间带有Nginx的https

代码语言:javascript
复制
var request = { url: "https://localhost/writever/chat",
                     contentType : "application/json",
                     logLevel : 'debug',
                     transport : transport ,
                     enableProtocol : true,
                     fallbackTransport: 'long-polling'};

Websocket连接在超时后失败,并降级为长轮询。

您是否知道websocket是否有可能在这些条件下工作?

顺便说一下,最新的nginx 1.3支持websocket代理-仍处于开发模式。如果使用这样的方法,是否会对AtmosphereHandler产生影响?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-04-25 03:45:24

这不应该有什么不同。但请看一下:

http://goo.gl/04g8F

您可能想要添加此标头,看看是否会有所不同。我真的很怀疑,但试一试。

-- Jeanfrancois

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/16163293

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档