Nginx proxy with websocket not returning data
nk86
nginx-forum at nginx.us
Thu Jan 30 11:50:24 UTC 2014
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;
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: http://forum.nginx.org/read.php?2,246996,246996#msg-246996
More information about the nginx
mailing list