Nginx 代理WebSocket

nginx 1.5+

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";