server { listen 80; server_name example.com; location / { proxy_pass http://your_upstream_server; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } }
标签:set,websokcet,header,配置,server,nginx,Upgrade,proxy,http From: https://www.cnblogs.com/wafulo/p/17581858.html