location /wss {
proxy_pass http://127.0.0.1:10086;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
}
到底用 http://127.0.0.1:10086 还是 http://127.0.0.1:10086/ 后面这个多个反斜杠
取决于你后端的server,可以都试试
831

被折叠的 条评论
为什么被折叠?



