nginx httpcode:426

  • nginx代理webSocket配置如果少了proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 这两个配置就会出现http 426报错
在location中添加

       proxy_http_version 1.1;
       proxy_set_header Connection "";

你可能感兴趣的:(nginx)