id summary reporter owner description type status priority milestone component version resolution keywords cc uname nginx_version 1746 websocket response 302 error larryluo64@… "I have deployed websocket protocol in nginx proxy,but websocket response 302 error!please help me,thank you very much. " defect closed minor other 1.15.x invalid map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream websocket { server 192.168.2.70:8210; } server { listen 80; listen 443 ssl ; server_name devm.manjd.com; index index.html index.htm; #ssl on; ssl_certificate /usr/local/nginx/conf/certificate/devm.manjd.com/214949433600661.pem; ssl_certificate_key /usr/local/nginx/conf/certificate/devm.manjd.com/214949433600661.key; ssl_session_timeout 5m; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; ssl_session_cache shared:SSL:20m; if ($scheme != https) { rewrite ^(.*)$ https://$host$1 permanent; } location ^~ /websocket { proxy_pass http://websocket; proxy_redirect off; proxy_set_header X-Real_IP $remote_addr; proxy_set_header Host $host; proxy_set_header X_Forward_For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; } "[root@nginx171 ~]# uname -a Linux nginx171 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux [root@nginx171 ~]# " "nginx version: nginx/1.14.2 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --with-pcre --with-stream --with-http_stub_status_module --add-dynamic-module=/usr/local/src/headers-more-nginx-module-0.33 --with-http_ssl_module --with-http_v2_module [root@nginx171 ~]"