Welcome! Log In Create A New Profile

Advanced

Nginx proxy with websocket not returning data

January 30, 2014 06:50AM
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;
}
}


}
Subject Author Posted

Nginx proxy with websocket not returning data

nk86 January 30, 2014 06:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 70
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready