tg123 / websockify-nginx-module

Embed websockify into Nginx (convert any tcp connection into websocket)
MIT License
140 stars 59 forks source link

can not work with http2 ssl enabled! #24

Open calvin2021y opened 3 years ago

calvin2021y commented 3 years ago

return 502 Bad Gateway, remove http2 from nginx listen work.

tg123 commented 3 years ago

I am sure ssl is fine but seems conflict with http2

tg123 commented 3 years ago

anther question is why do you want websock over http2?

calvin2021y commented 3 years ago

I try avoid use websock over http2, but nginx is not able to disable http2 for one vhost, so you have to disable all vhosts http2 or you don't get to use websockify_pass.

If nginx server http2 enabled, the client send http 1.1 request still get this error. disable http2 for all vhosts fix the problem. (then all your site has slow http 1.1).