nginx反向代理websocket相关配置
今天开发项目的时候遇到了一个问题,在vue里配置websocket的url, 后端提示: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header 仔细检查了一番,发现原来是我做了nginx反向代理,但是又没有设置正确的websocket反向代理,设置的只是http的,所以就需要专为它配个了。
阅读全文 →