Nginx proxy with websocket not returning data

Ne Ka lists at
Thu Jan 30 11:56:42 UTC 2014


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

Here's 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 via

More information about the nginx mailing list