宝塔nginx wss 端口访问正常

SoNy

宝塔nginx wss 端口访问正常
不过我加了静态 就直接502了是什么问题?
我直接通过 http://127.0.0.1:2346 访问正常
加了静态 直接502返回
wss:域名/ws1
location /ws1 {
proxy_pass http://127.0.0.1:2346;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
rewrite /ws1/(.*) /$1 break;
proxy_redirect off;
}
求论坛论坛大佬们帮忙看看

946 0 0
0个回答

年代过于久远,无法发表回答
×
🔝