nginx配置支持websocket
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
加入nginx配置文件中。
否则websocket访问会出错。
proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";
加入nginx配置文件中。
否则websocket访问会出错。