WebSocket 本地调试正常,Linux服务器不通?
需要在nginx config 配置文件中增加红色两行
location /service/ {
proxy_pass http://localhost:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
WebSocket 本地调试正常,Linux服务器不通?
需要在nginx config 配置文件中增加红色两行
location /service/ {
proxy_pass http://localhost:9999;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}