Websocket is not working with Nginx Reverse Proxy
Sergey A. Osokin
osa at freebsd.org.ru
Mon Sep 20 23:04:33 UTC 2021
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
More information about the nginx
mailing list