proxy_pass http://backend; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade;
据说1.3以后就支持了 不需要编译那个tcp 模块了firebug会看到状态是101 Switching Protocols