Welcome! Log In Create A New Profile

Advanced

Re: Websocket is not working with Nginx Reverse Proxy

Sergey A. Osokin
September 20, 2021 07:06PM
On Sun, Sep 19, 2021 at 10:30:42PM -0400, blason wrote:
> Well - I tried that as well
>
> ************
> location /SNX/ {
> proxy_pass https://websocket;
> proxy_http_version 1.1;
> proxy_set_header Upgrade $http_upgrade;
> proxy_set_header Connection $connection_upgrade;
> proxy_set_header Connection "Upgrade";
> proxy_set_header Host $host;
> ********************
> And in nginx.conf file
>
> http {
> map $http_upgrade $connection_upgrade {
> default upgrade;
> '' close;
> }
>
> And still no luck - Here is what I see in access.log and it just stops
> there
>
> 182.48.206.98 - - [20/Sep/2021:07:59:32 +0530] "GET
> /Login/ComponentFrame?nPageMode=2&snxVersion=80,0,0064,18 HTTP/1.1" 200 1150
> "https://vpn.xxxx.com/SNX/extender" "Mozilla/5.0 (Windows NT 10.0; WOW64;
> Trident/7.0; rv:11.0) like Gecko"

So, I'd try to extend log_format by adding the variables from the map
directive to the log file to see what's going on. And if that doesn't
help I'd enable the debug log.

--
Sergey Osokin
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Websocket is not working with Nginx Reverse Proxy

blason September 19, 2021 01:35PM

Re: Websocket is not working with Nginx Reverse Proxy

blason September 19, 2021 01:36PM

Re: Websocket is not working with Nginx Reverse Proxy

Sergey A. Osokin September 19, 2021 07:14PM

Re: Websocket is not working with Nginx Reverse Proxy

blason September 19, 2021 10:30PM

Re: Websocket is not working with Nginx Reverse Proxy

Sergey A. Osokin September 20, 2021 07:06PM

Re: Websocket is not working with Nginx Reverse Proxy

blason September 20, 2021 11:17PM

Re: Websocket is not working with Nginx Reverse Proxy

Sergey A. Osokin September 22, 2021 01:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 109
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready