Nginx proxy with websocket not returning data

I am trying to configure nginx proxy with websockets I am using jetty
with cometd framework(sends connect request to server every minute). I
able to do the websocket handshake and send my login request to the
but I am not getting any response back. Can you let me know what is
with my config file.

worker_processes 1;
events {
worker_connections 1024;

http {
include mime.types;

server {
    listen       80;

location / {
proxy_redirect off;
#root /var/;

proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “Upgrade”;
proxy_set_header X-Nginx-Proxy true;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;


Posted at Nginx Forum:,246996,246996#msg-246996

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs