Apache mod_proxy: forward secure websocket to non-secure
To get things to work, I also needed to load mod_proxy_wstunnel
Once I did, this ruleset got things working: (in the VirtualHost
of the domain that receives and proxies the websocket request)
<IfModule mod_proxy.c>
ProxyPass "/_ws_/" "ws://127.0.0.1:8080/"
ProxyPassReverse "/_ws_/" "ws://127.0.0.1:8080/"
</IfModule>
The browser can then contact the backend WS server through the HTTPS port:
var ws = new Websocket('wss://example.com/_ws_/');