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
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
转载于:https://www.cnblogs.com/vaal-water/p/3169827.html