使用 websocket:
server { listen 443 ssl http2; ............
} location / { ............ proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; } ......... } 使用 http 1.1
server { listen 443 ssl http2; ............
} location / { ............ proxy_http_version 1.1; proxy_set_header Connection ""; } ......... } 上面两种应该都对吧?是不是第一张反代时候访问用 websocketgeng'h 更好,1M 小水管想尽可能快一点。
