socket.io
nginx已经如下配置
location /socket.io
{
proxy_pass http://127.0.0.1:2120;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header X-Real-IP $remote_addr;
}
为什么还会报403呢
failed: Error during WebSocket handshake: Unexpected response code: 403
@1
发下nginx完整配置。
还有workerman的 php start.php status 运行结果截图