标签:socket soc pre sock pass proxy http serve connect
map $http_upgrade $connection_upgrade {
default upgrade;
‘‘ close;
}
server {
listen 80;
server_name localhost;
location /ws {
proxy_pass xxx;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
标签:socket soc pre sock pass proxy http serve connect
原文地址:https://www.cnblogs.com/pengsn/p/13671129.html