Nginx proxy with websocket not returning data

Hi,

I am trying to configure nginx proxy with websockets I am using jetty
server with cometd framework. 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 could be wrong with my config
file.

Here’s 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;
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;
}
}

}

Hello!

On Thu, Jan 30, 2014 at 12:56:42PM +0100, Ne Ka wrote:

Hi,

I am trying to configure nginx proxy with websockets I am using jetty
server with cometd framework. 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 could be wrong with my config
file.

It would be interesting to know at least nginx version used, as
weel as OS and “nginx -V” output. See
http://wiki.nginx.org/Debugging for some more hints.

Config looks fine and should work.


Maxim D.
http://nginx.org/

Hi,

Nginx - 1.4.4
OS - windows
I ran it with the error log debug mode but didn’t see anything out of
usual. I tried attaching it but its giving me some error.

Not sure how to get nginx - V output, the debugging mentioned was for
linux.

Maxim D. wrote in post #1135040:

Hello!

On Thu, Jan 30, 2014 at 12:56:42PM +0100, Ne Ka wrote:

Hi,

I am trying to configure nginx proxy with websockets I am using jetty
server with cometd framework. 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 could be wrong with my config
file.

It would be interesting to know at least nginx version used, as
weel as OS and “nginx -V” output. See
http://wiki.nginx.org/Debugging for some more hints.

Config looks fine and should work.


Maxim D.
http://nginx.org/

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