nginx配置websocket反向代理
#5.配置wss接口
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
需要将 location 后面的 webSocketServer替换成真实的接口地址
nginx部署 vue,react项目后,出现404,解决办法,在server里面配置
location / {
...
try_files $uri $uri/ /index.html;
}