nginx 代理 web socket 报错“WebSocket is already in CLO
2020-12-29 02:27
标签:sed upgrade ebs 提示 head 生产 http ash read 在生产环境中需要使用 nginx 代理 websocket ,按照正常配置之后发现浏览器一直提示 “WebSocket is already in CLOSING or CLOSED state.” 这是因为 nginx 在代理需要添加如下两个参数 加上如下参数正常 nginx 代理 web socket 报错“WebSocket is already in CLO 标签:sed upgrade ebs 提示 head 生产 http ash read 原文地址:https://blog.51cto.com/13447608/2541991 proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
上一篇:面试知识----js基础
文章标题:nginx 代理 web socket 报错“WebSocket is already in CLO
文章链接:http://soscw.com/index.php/essay/38953.html