摘要:
话说nginx1.3.13以上版本支持WebSocket协议,今天试用了一下,参考文档http://nginx.org/en/docs/http/websocket.htmllocation /chat/ { proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";}怎么设置都不成功终于发现官方文档里的这句话proxy_set_header Connection " 阅读全文