WebSocket connection failed with nginx, nodejs and socket.io
问题 I try to setup nodejs with nginx. But when the client try to connect it fails with... WebSocket connection to 'ws://www.mydomain.com/socket.io/1/websocket/KUv5G...' failed: Error during WebSocket handshake: 'Connection' header value is not 'Upgrade': keep-alive socket.io.js:2371 So how to enable websocket comunication? my current nginx config upstream mynodejsapp { server 127.0.0.1:3000 max_fails=0 fail_timeout=10s weight=1; ip_hash; keepalive 512; } server { listen 80; listen [::]:80 default