Skip to main content

Questions tagged [websocket]

WebSocket is an API built on top of TCP sockets and a protocol for bi-directional, full-duplex communication between client and server without the overhead of http.

Filter by
Sorted by
Tagged with
1 vote
1 answer
4k views

No protocol handler was valid for the URL /url. If you are using a DSO version of mod_proxy

Trying to set up a load balancer using Apache 2.4.x on Windows. Error: No protocol handler was valid for the URL /path/. If you are using a DSO version of mod_proxy, make sure the proxy submodules ...
Himani Singla's user avatar
2 votes
0 answers
2k views

proxy_pass to websocket behind nginx

I got websocket servers and there are behind nginx. I need to configure second nginx as proxy to this first nginx. But when I make a request, there is an error 400 or 404 (with different configs). ...
Grzonu's user avatar
  • 21
3 votes
1 answer
15k views

How to troubleshoot Nginx 499 when it's not returning a web sockets handshake back to the client?

In a Kubernetes cluster, I have an Nginx server acting like a reverse proxy / TLS termination solution that proxypass requests to a backend Tomcat application that has some functionalities powered by ...
theMarceloR's user avatar
3 votes
0 answers
870 views

NGINX Websocket initial communication delay

I've created a Django server that is making use of django-channels for websocket communication. When I run the server with NGINX there is an initial delay in websocket communication between the server ...
MCBama's user avatar
  • 131
0 votes
0 answers
2k views

nginx reverse proxies with separate SSL termination and websockets

I'm trying to chain proxies. The first one for SSL, next one - for dispatching to the servers. The first one (secure-gateway-nginx) just unwraps SSL and passes to the gateway-nginx: server { ...
Velkan's user avatar
  • 364
3 votes
0 answers
577 views

Confluence (Synchrony) using websockets behind IIS8 can't copy or insert large blocks of text

I've got a Confluence 6.1.0 setup running behind an IIS8 reverse proxy doing SSL. Everything works except for one small problem. When I try to copy a three or four paragraphs of text, attempt to ...
meeper's user avatar
  • 43
3 votes
2 answers
2k views

nginx as proxy for WebSocket: inspect and block certain requests

I ran NodeJS as a kind of Webapplication Server serving an AngularJS frontend. They communicate solely over WebSockets, using the SailsJS implementation of Socket.IO. Between frontend (client) and the ...
cis's user avatar
  • 247
3 votes
2 answers
14k views

Apache 2.4.7 mod_proxy_wstunnel tunneling too much (HTTP as well as WS)

I'm running Apache 2.4.7 as a reverse proxy on Ubuntu 14.04 LTS. This Apache server acts as the entrypoint to a lot of different backend applications, which are accessed via different mod_proxy ...
Brian Beckett's user avatar
3 votes
1 answer
3k views

WSS Load Balancing with SSL Termination at layer 4

Should it be possible to terminate SSL for wss (secure websockets) at a layer 4 load balancer? Seems to me that wss (and ws) in general would require TCP routing since an HTTP reverse proxy wouldn't ...
rbinion's user avatar
  • 31
4 votes
1 answer
3k views

Add proxy headers in named location using nested location regex

I'm trying to setup a WebSocket endpoint on my Rails API using Nginx and Puma. What I have (working but ugly) The following Nginx configuration works fine, however I feel like I could use something ...
Habovh's user avatar
  • 271
0 votes
0 answers
379 views

websocketserver behind nginx and apache

How is it possible to establish a websocket connection through nginx and apache, where both act as reverse proxies. The system is setup with apache on the main host and a tornado webapplication in a ...
eatdas's user avatar
  • 1
0 votes
1 answer
419 views

Unable to init NodeJS-based WebSocket Server as Service on Windows Server 2012

A basic node.js Implementation of a websocket server runs fine as when started via the command line or the scheduled task manager. However, after being installed as a service using nssm, it refuses ...
Jens Habegger's user avatar
0 votes
0 answers
51 views

can many users on 1 wifi network cause issues with websockets?

We have a product that allows a group of people watching a presentation to vote on questions in the presentation on their mobile. The new version of the website that people use to vote uses ...
Flion's user avatar
  • 181
4 votes
1 answer
4k views

Unable to get websockets to work through apache HTTPS proxy (302 error)

I'm unable to make websockets work on a node backend using an apache proxy through HTTPS to connect to the node instance. Websockets are working properly if no (apache) http(s) proxy is used. My ...
Digital Leaves's user avatar
0 votes
0 answers
1k views

elb ssl termination for wss websocket fails net::ERR_RESPONSE_HEADERS_TRUNCATED

I am trying to get a websocket communication working through a classic ELB with ssl termination to wowza, a java based media server. Setup VPC R53 test.myTld.com IPv4, Alias=Yes, Target myElb, ...
art vanderlay's user avatar
0 votes
1 answer
926 views

Apache2: Is Proxy from https to http secure

Im pretty new at all this server stuff, and I have a question regarding the security of the apache proxy. What I am doing is: I have a websocket server running in non secure mode on port 11221 on the ...
Felix's user avatar
  • 103
3 votes
1 answer
16k views

NGINX Proxy Setup for ws:// protocol

I am trying to setup NGINX to proxy web socket traffic. I am running a web page on NGINX (port 80) that has an MJPEG feed from port 8080 and also takes web socket traffic over port 8090. I can proxy ...
user383341's user avatar
1 vote
0 answers
760 views

WebSockets with TeamCity behind Amazon ELB

I'm setting up TeamCity behind a public ELB in Amazon. I am attempting to fix the WebSocket connection issue: Some users cannot use optimized web UI updates via WebSocket protocol. This is a ...
Thomas Farvour's user avatar
2 votes
0 answers
785 views

When does the Nginx error happen, recv() failed (110: Connection timed out) while proxying upgraded connection

I am using Nginx 1.10.1 for my APP to balance connections on Websocket. For example, the App A(multi-process) establish Websocket connections to B1, B2 through Nginx so that the connections could be ...
asleea's user avatar
  • 169
9 votes
3 answers
17k views

Apache mod_proxy: forward secure websocket to non-secure

The websocket library I rely on (PHP-Websockets) does not yet support secure sockets (wss). My website is served over https though, so I cannot use insecure ws connections. I'm trying to use Apache's ...
BeetleJuice's user avatar
2 votes
1 answer
1k views

Does Apache process handling Websocket proxy also serve same client for http?

In choosing to adopt Websocket as the real-time technology behind a web application for my company, I'm trying to determine what the server workload will be. So far as I understand Apache internals, ...
B. Lawson's user avatar
0 votes
1 answer
17k views

Cannot connect to server via wss

I have the below nginx.conf file set to handle http and https. I'm currently using a self-signed certificate to test over ssl. server { listen 80; listen 443 ssl; server_name ...
Jayaram's user avatar
  • 153
0 votes
0 answers
1k views

Nginx, Way to re-balance websocket for a server which gets alive after failed?

I want to balance web-socket with Nginx. When it connects first, it balances the connections. When a server among upstream is failed, it also does re-balance web-socket connections. However, even ...
asleea's user avatar
  • 169
3 votes
1 answer
2k views

nginx proxy_pass two ports into subfolders

So I had my last "reverse proxy" problem fixed regarding "mapping" a port to a subfolder Thanks again to this awesome community. I have been able to work with this solution for a while but now I am ...
pAt84's user avatar
  • 311
0 votes
1 answer
752 views

PHP websocket script running as daemon stops working after a while

I start my websocket script like so: nohup php server.php & and I close the ssh client and it seems to be working fine for a while, but after say half an hour or so it stops working, any idea ...
user6562256's user avatar
3 votes
1 answer
9k views

Increase client timeout for WebSocket connections to certain URL

On CentOS 7 Linux I successfully use HAProxy 1.5.14 in front of Jetty 9 serving a Wordpress site via FastCGI. It works really well, but for a HTML5/WebSocket game at the same website much higher ...
Alexander Farber's user avatar
7 votes
1 answer
12k views

ws protocol and apache mod_proxy_wstunnel configuration: error 500

I got an error 500 when trying to access to ws://localhost:8080/ via my Apache2 server. This server runs OpenSuse Leap 42.1 and Apache 2.4.16. These Apache2 modules are enabled: mod_proxy, ...
jack-y's user avatar
  • 171
2 votes
1 answer
2k views

Can not using websocket with nginx

I am using Activemq as broker, client side is Paho js to send websocket request(ws protocol). Everything work fine on server, but when the server start to set nginx as proxy, the client can not ...
Rong Nguyen's user avatar
1 vote
0 answers
596 views

nginx SSL termination with sticky load balancing

I want to use Nginx with a socket.io app with TLS/SSL termination at the load balancer. Is it possible to use the ip_hash directive to do sticky loadbalancing in combination with TLS/SSL termination? ...
Leo's user avatar
  • 31
2 votes
1 answer
4k views

Websocket reverse proxy with nginx: Error about request in server log, but works in browser

The situation I am running Etherpad, which is proxied via nginx. Etherpad uses Websockets with Socket.io. My nginx config is more or less this one. The location block for socket.io is this: rewrite ...
rugk's user avatar
  • 546
0 votes
1 answer
1k views

How to run a Parse Live Query Server (Web Sockets) behind an AWS Load Balancer?

ParseLiveQuery depends on Websockets. More generically this question could be about getting web sockets to work behind an AWS ELB. I'm using the new Parse Server configured in AWS using Elastic ...
Chad Pavliska's user avatar
0 votes
0 answers
607 views

Why my websockets application deployed on tomcat is not getting the shibboleth headers?

My stack looks like this: Apache httpd server 2.4.12: with mod_shibd, mod_proxy_http & mod_proxy_wstunnel Shibboleth 2.5 Apache Tomcat 7.0.54 Our scenario looks like this: --------- -...
Gaucho's user avatar
  • 101
4 votes
1 answer
2k views

TeamCity, nginx, and Websockets - 501 Error

I'm currently setting up TeamCity behind an nginx reverse proxy, but I am getting an error in my browser. The error is as follows: WebSocket connection to 'ws://ci.example.net/app/subscriptions?X-...
mattrick's user avatar
  • 143
2 votes
3 answers
1k views

Configure Meteor in a server without websocket support

I was asked to test a meteor (js) website in a server without websockets support, how can I achieve this? How can I really know that a server is not capable of using websockets?
w3jimmy's user avatar
  • 143
8 votes
1 answer
11k views

ProxyPass a WebSocket connection to a UNIX socket

In Apache 2.4 you can reverse proxy an HTTP connection to a local Unix socket with: [1] ProxyPass unix:/path/to/app.sock|http://example.com/app/name You can reverse proxy a WebSocket connection to a ...
Kijewski's user avatar
  • 189
0 votes
1 answer
458 views

Tomcat 7 WebSocket (JSR356) Examples error: WebSocket connection closed

I'm trying to setup Tomcat7 on Ubuntu 14.04 and run into the following issue: WebSocket (JSR356) Examples load but give the error: Info: WebSocket connection closed. - for everything. WebSocket ...
Tommy Burazin's user avatar
0 votes
1 answer
5k views

SIP.js connection to Asterisk 11.20 over WSS not working

I have successfully setup sip.js using a standard non secure ws:// to an asterisk 11 server using firefox 43. I can make and receive calls to another ff browser/hardphone. But this does not work with ...
bobby's user avatar
  • 11
1 vote
0 answers
193 views

Apache reverse proxy sometimes takes over all requests

I am using my apache as a reverse proxy for a few requests to a webserver running on an internal port to allow access via my regular virtual host. This is on an ubuntu 15 running in vagrant. Here's ...
Christof's user avatar
  • 121
1 vote
0 answers
572 views

Configure a websocket server in front of HAProxy

I have a small python server script which creates a websocket connection and accepts base64 encoded IP packets (very similar to this). As of now my script decodes the IP packet and sends it out into ...
Dan Ramos's user avatar
  • 111
1 vote
3 answers
9k views

Apache proxy all ws connections to different port

In my Apache 2.4 vhost I'm trying to get all https:// traffic to carry on to port 443, but all ws:// traffic to forward onto ws://*:6969. Eg: https://example.com/index would just go to https://...
KapowKi's user avatar
  • 11
7 votes
1 answer
14k views

How to handle 1M websocket connections (Nginx/HAProxy/Amazon/Google) [duplicate]

What nginx or haproxy setup is suggested for target 100K concurrent websocket connections? What I think, a single nginx will not be able to take such traffic as well as concurrent connections. How ...
Ravi Kumar's user avatar
2 votes
1 answer
4k views

How does nginx websocket proxy work?

I'm wondered about how nginx handles tons active websocket connections? There is a lot of limitations, like a number of open files, maximum of 65k TCP connections between IP <-> (IP, port) and so ...
Ivan Velichko's user avatar
1 vote
0 answers
316 views

How should I set up my sub-domain to allow it listen on a port for web socket transfer?

This may be a really beginner question, but I really want to make sure I'm going in the right direction before investing time in this. Heres what I have. charlieli.me @ 45.55.33.185:80 fileserver....
lzc's user avatar
  • 111
1 vote
1 answer
2k views

Apache wstunnel_proxy not working

I am trying to connect to my websocket server using html 5 websockets. The direct connection works fine, but when I try to hide my server behind apache proxy it does not work. it ends up: var ws = ...
Dusan Plavak's user avatar
1 vote
1 answer
1k views

Nginx doesn't start Passenger/Nodejs

I cannot get Passenger to start my Nodejs (iojs) application on restarting nginx. I've followed the tutorials and installed the prerequisites: $ nginx -V nginx version: nginx/1.8.0 configure ...
Maruf's user avatar
  • 159
1 vote
0 answers
2k views

Websockets behind Apache and Nginx proxy connection not upgraded

I have a problem. Apache listens on a white ip and proxies all requests /ssd on nginx that proxies requests /city-dashboard to another server with websockets. In apache config: ProxyPass /ssd/ http://...
reddaemon's user avatar
8 votes
1 answer
11k views

Nginx WebSocket reverse proxy keeps return 200 instead of 101

I'm currently trying to have a hack.chat on my personal server working. Long story short, it consists of two servers. The first is a simple httpd server serving javascript and CSS. The second one, ...
axellink's user avatar
0 votes
1 answer
519 views

Reverse proxy requests based on http:// or ws:// in request header

From a previously asked question I know that I can route requests to a different servers with reverse proxy, such as mod_proxy for apache. My question is, before I dig deeper into its setup, which of ...
Maxim V. Pavlov's user avatar
6 votes
1 answer
9k views

HA Proxy and Websockets

I'm setting up my first HAProxy reverse proxy server. It's going to be a proxy for an HTML5 app running on tomcat from a different server. I was able to get it to proxy out via HTTP, redirect all ...
JoeInVT's user avatar
  • 95
0 votes
1 answer
220 views

Keep connections of closed instances behind a load balancer

I'm looking for a system to create a live sockets application through sockets.io and that can be balanced without problem. There are tons of solutions to balance the load between multiple socket ...
Jorge Fuentes González's user avatar