WSS Proxy to a Jetty AppServer

Hi,

Im trying to proxy the wss (websockets) to a jetty server

I have jetty server listening on 8085 http

I’ve made the ssl proxy to the 8085 fine
I’ve made the ws proxy to jetty ok getting web sockets connecting and
transmiting data
but wss is not working
nginx 1.6.0

default:

proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=UCONTACT:50m
max_size=100m;
server {

    server_name         localhost;
    listen              80;
    listen              443 ssl;
    ssl_certificate     /etc/nginx/ssl/server.crt;
    ssl_certificate_key /etc/nginx/ssl/server.key;
    ssl_protocols       SSLv3 TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

location / {
set $no_cache “”;
if ($request_method !~ ^(GET|HEAD)$) {
set $no_cache “1”;
}
if ($no_cache = “1”) {
add_header Set-Cookie “_mcnc=1; Max-Age=2; Path=/”;
add_header X-Microcachable “0”;
}
if ($http_cookie ~* “_mcnc”) {
set $no_cache “1”;
}
proxy_no_cache $no_cache;
proxy_cache_bypass $no_cache;
proxy_pass http://localhost:8085;
proxy_cache UCONTACT;
proxy_cache_key $scheme$host$request_method$request_uri;
proxy_cache_valid 200 302 1s;
proxy_cache_valid 301 1s;
proxy_cache_valid any 1s;
proxy_cache_use_stale updating;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_max_temp_file_size 1M;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}

location /records/ {
alias /var/spool/asterisk/monitor/;
}

location /agent {
alias /etc/IntegraServer/web/agent/;
}

location /portal {
alias /etc/IntegraServer/web/portal/;
}

}

any idea if my config is wrong??

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250012,250012#msg-250012

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