websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connecti...

用nginx转发1Panel管理地址,结果在使用到终端的时候,连接不上,看日志提示出错

websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' head

这是用nginx转发WebSocket请求时,配置问题,就会出现此问题。

解决办法在转发location中添加

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 搭建线上环境需要做什么?1、购买域名。2、购买服务器(就是一台带外网ip的虚拟电脑)。3、配置服务器应用环境(用户...
    LoveBugs_King阅读 2,185评论 0 2
  • 转自 https://github.com/mzlogin/awesome-adb Adb ADB,即 Andro...
    hxljy阅读 326评论 0 5
  • ADB,即 Android Debug Bridge,它是 Android 开发/测试人员不可替代的强大工具,也是...
    Gundy_阅读 772评论 0 0
  • 转载自:https://github.com/mzlogin/awesome-adb[https://github...
    大冷月阅读 664评论 0 0
  • 原文地址[https://github.com/mzlogin/awesome-adb] 基本用法 命令语法 ad...
    SunshineBrother阅读 772评论 0 2