opendax
opendax copied to clipboard
Ranger wss with apache2 reverse proxy
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
I'm getting this issue too.