0
我使用Nginx将https从客户端转换为http服务器。大气-Nginx作为https-> http转发器 - websocket不工作
我有一个没有这个转发websocket工作得很好的气氛配置。
现在,如果我在中间
超时和降级到长轮询后var request = { url: "https://localhost/writever/chat",
contentType : "application/json",
logLevel : 'debug',
transport : transport ,
enableProtocol : true,
fallbackTransport: 'long-polling'};
WebSocket连接失败切换至HTTPS,Nginx的。
你知道websocket是否可以在这些条件下工作吗?
顺便说一下,最新的nginx 1.3支持websocket代理 - 仍然处于开发模式。如果使用这种方法,它对AtmosphereHandler有影响吗?
THX JF,实际上它是工作的罚款nginx的1.3.13+,因为它支持WebSocket的代理了。我在这里发布我的配置:http://stackoverflow.com/questions/16178860/nginx-with-websocket-and-https-content-on-same-url – unludo 2013-04-24 20:05:39