-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[错误]Websocket 反代到子目录异常 #93
Comments
写完整 wss:// 试试( |
wss的判断倒是对的, 页面确实发起了wss的连接, 后端也收到了, 然后就没有下一步了.. |
🤔 |
没复现出来,可以的话可以看一下 nginx 的反代设置吗 |
location /ws { |
哦,我之前也遇到过这个问题,反代到子目录下之后连上了 ws 但是完全不交互…… |
问了下作者解决了(x location ^~ /ws {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
rewrite ^/ws /$1 break;
proxy_pass http://frps:3010;
} |
我超, 确实解决了, 牛! |
错误来源
Stapxs QQ Lite
描述错误
网页端wss连接可以发出去, 但是连接握手之后就没有然后了
复现流程
llob的后端, 用nginx反代出来的wss, 点击连接可以成功创建websocket连接, 但是页面没有反应
截图
版本信息
2.7.2
更多
No response
The text was updated successfully, but these errors were encountered: