# 开启websocket支持
location ^~ /xxxx/ {
root html;
index index.html index.htm;
proxy_pass http://xxxx:xx/;
#启用支持websocket连接
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
nginx开启websocket支持
最新推荐文章于 2023-11-22 17:18:02 发布