Browsing this Thread:   1 Anonymous Users






nginx websocket
#1
Just can't stay away
Just can't stay away


See User information


location /proxy-m/websocket {
proxy_pass http://127.0.0.1:9503/websocket;
proxy_http_version 1.1;
proxy_read_timeout 36000;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Wsproxy "proxy";
proxy_set_header Host $http_host;
proxy_set_header Remote-addr $remote_addr;
}

location ^~ /proxy-m/ {
proxy_pass http://127.0.0.1:9503/;
proxy_set_header Wsproxy "proxy";
proxy_set_header Host $http_host;
proxy_set_header Remote-addr $remote_addr;
}



Posted on: 2020/8/18 9:53
Top








friend links
Themes

(2 themes)
Login
Username:

Password:


Lost Password?
Register now!
Categories
Xoops (11)
--Modules (2)
--Themes (0)
Article (8)