Nginx Websocket problem <SOLVED>

Started by michaelgo, June 03, 2021, 03:43:07 PM

Previous topic - Next topic
June 03, 2021, 03:43:07 PM Last Edit: June 03, 2021, 04:13:38 PM by michaelgo
Hi,
latest version
1 upstream server
direct connection to server works just fine including ws
when reverse proxying through nginx (websocket enabled in advanced location settings) ws returns 400
please, help
--
solved by adding in nginx.conf

location / {
   proxy_pass http://$upstream;
   }

I don't know why this is solved if there is no response yet.

However there is a checkbox for websockets. This will set the backend connection to HTTP/1.1 instead of HTTP/1.0.