错误原因 nginx用了转发,头信息没设置全
废话不多说,直接贴出nginx配置文件
location / {
proxy_pass http://localhost:8001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}重启nginx,应该就可以了。
979





