Welcome! Log In Create A New Profile

Advanced

Re: Websocket (wss) connection issue (status 200 instead 101) between two nginx systems

April 20, 2020 05:06PM
Hi Francis,

Many thanks for your message and for your help, it’s very kind of you.

As you suggested, I’ve tried to add these lines on the “black box” side:

proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_http_version 1.1;

But unfortunately, without success, these lines didn’t improve the websocket connection. So, I’ve decided to roll back to previous version without the connection upgrade on the “black box”.

I’ve tried different changes to the setup and I finally found my mistake, on the server side I’ve added an extra slash at the end:
proxy_pass https://192.168.1.20:80/;
I change this line with:
proxy_pass https://192.168.1.20:80;

Now, it works smoothly.

The evil always comes from details…

Thanks again Francis for your time and your assistance,

Regards,
YAGA
Subject Author Posted

Websocket (wss) connection issue (status 200 instead 101) between two nginx systems

YAGA April 18, 2020 05:39PM

Re: Websocket (wss) connection issue (status 200 instead 101) between two nginx systems

Francis Daly April 19, 2020 02:56PM

Re: Websocket (wss) connection issue (status 200 instead 101) between two nginx systems

YAGA April 20, 2020 05:06PM

Re: Websocket (wss) connection issue (status 200 instead 101) between two nginx systems

Francis Daly April 22, 2020 03:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready