OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: michaelgo on June 03, 2021, 03:43:07 pm

Title: Nginx Websocket problem <SOLVED>
Post by: michaelgo on June 03, 2021, 03:43:07 pm
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;
   }
Title: Re: Nginx Websocket problem &lt;SOLVED&gt;
Post by: fabian on June 03, 2021, 06:58:24 pm
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.