Welcome! Log In Create A New Profile


WSS Proxy to a Jetty AppServer

May 10, 2014 06:11PM

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


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??
Subject Author Posted

WSS Proxy to a Jetty AppServer

scgm11 May 10, 2014 06:11PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 152
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready