zhaojh329/rttys

用nginx反代 location需要怎么配置?

fsyxhua opened this issue · 1 comments

server { server_name rttys.test.com; listen 80; location / { proxy_pass http://192.168.1.200:5913; } }

我这样配置能 打开网页,但是终端和远程Web页面都无法打开

开启WebSocket就能实现终端打开了;配置中增加如下内容:
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

继续尝试远程Web页面打开