proxy_pass http://backend;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;

据说1.3以后就支持了 不需要编译那个tcp 模块了
firebug会看到状态是
101 Switching Protocols

相关文章:

  • 2021-05-10
  • 2022-02-23
  • 2022-02-11
  • 2022-02-05
  • 2021-06-30
  • 2021-06-25
猜你喜欢
  • 2021-07-26
  • 2022-02-22
  • 2021-11-14
  • 2021-09-18
  • 2022-12-23
相关资源
相似解决方案