opendax icon indicating copy to clipboard operation
opendax copied to clipboard

Ranger wss with apache2 reverse proxy

Open andrew-thought opened this issue 4 years ago • 1 comments

Hi all,

Getting 400 errors and Websocket upgrade failed in Ranger logs

WebSocket connection to 'wss://xxxxx/api/v2/ranger/public/?stream=global.tickers&stream=btcusdt.ob-inc&stream=btcusdt.trades' failed: Error during WebSocket handshake: Unexpected response code: 400

also

{"level":"error","time":"2021-02-17T17:41:02Z","message":"Websocket upgrade failed: websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header"}

Here is my apache reverse proxy config

RewriteCond ${HTTP:Upgrade} websocket [NC] RewriteCond ${HTTP:Connection} upgrade [NC] RewriteRule .* "wss://192.168.xxx.1xx:8080/$1" [P,L]

ProxyPreserveHost On ProxyPass / https://192.168.xxx.1xx:443/ ProxyPassReverse / https://192.168.xxx.1xx:443/ IPCCommTimeout 31

Any ideas?

Thank you! Andrew

andrew-thought avatar Feb 17 '21 17:02 andrew-thought

I'm getting this issue too.

Phoenix-GH avatar Sep 03 '21 02:09 Phoenix-GH