You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
相关issue: #61
我跟上边issue的区别是他是wss我是ws,nginx只监听了80端口的,浏览器直接访问域名+path的话(https)返回是404,还算正常,但是改为http访问的话会弹出:
handshake error: bad "Upgrade" header
不知道能否顺手解决下呢
nginx配置:
server {
listen 80;
server_name fuck.gfw.com;
location /iloveverysimple {
proxy_redirect off;
proxy_pass http://127.0.0.1:23333;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
}
location / {
return 302 https://fuck.gfw.com${request_uri};
}
}
The text was updated successfully, but these errors were encountered: