这个需要nginx 配置什么片段么
控制台提示
WebSocket connection to 'ws://app.mysada.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 404
location /websocket {
proxy_read_timeout 60m;
proxy_set_header Host $http_host;
proxy_http_version 1.1;
proxy_set_header X-forwarded-for $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://127.0.0.1:9000;
access_log off;
}
这样配置了下nginx 还是提示这个错误