# Nginx proxy with websocket not returning data

**URL:** <https://www.ruby-forum.com/t/nginx-proxy-with-websocket-not-returning-data/238829>\
**Category:** NGINX\
**Created:** [January 30, 2014, 12:51pm UTC](https://www.ruby-forum.com/t/nginx-proxy-with-websocket-not-returning-data/238829 "2014-01-30T12:51:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [January 30, 2014, 12:51pm UTC](https://www.ruby-forum.com/t/nginx-proxy-with-websocket-not-returning-data/238829/1 "2014-01-30T12:51:03Z")

</div>

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

worker\_processes 1;  
events {  
worker\_connections 1024;  
}

http {  
include mime.types;

```
server {
    listen 80;
    server_name test.abc.com;

```

location / {  
proxy\_pass [http://110.90.22.202:8080](http://110.90.22.202:8080);  
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:

> **[Nginx proxy with websocket not returning data](https://forum.nginx.org/read.php?2,246996,246996#msg-246996)**
>
> I am trying to configure nginx proxy with websockets I am using jetty server with cometd framework(sends connect request to server every minute). I am able to do the websocket handshake and send my login request to the server but I am not getting any...
