支持 websockets 的 Linux 网络服务器?

Tom*_* B. 6 nginx web-server socket

我目前在尝试使用socket.io需要来自服务器的 websockets 支持(反向代理)时遇到很多困难。

我想知道,是否还有其他支持 websockets 的 Web 服务器?

我在使用 nginx 时遇到的错误:

2012/05/22 02:19:34 [error] 28159#0: *5 connect() failed (111: Connection refused) while connecting to upstream, 
client: my.ip.ad.dr,
server: localhost,
request: "GET /socket.io/1/?t=1337653158192 HTTP/1.1", 
upstream: "http://127.0.0.1:3000/socket.io/1/?t=1337653158192", 
host: "lifestore.brainpad.org", referrer: "http://mywebad.dr/"
Run Code Online (Sandbox Code Playgroud)

kas*_*yap 4

nginx 本身不支持 websocket。看起来有一个 tcp 代理模块可以编译到 nginx 中来执行此操作。

http://www.letseehere.com/reverse-proxy-web-sockets

但其他一些讨论(这里和 SO)似乎表明人们会直接进入 Node.js。

鉴于您正在使用 socket.io,我怀疑您已经在后端使用了 node.js。此外,trello 团队的这篇博文内容非常丰富。http://blog.fogcreek.com/the-trello-tech-stack/