I have been trying for the longest time to proxy a websocket with it's sid variable to the localhost service, that is serving it. I have looked far and beyond for a solution (including a lot of the questions here), but most of them suggest to use a VirtualHost, which I cannot do, since I do not want a subdomain and the virtualhost to my main domain already has a proxypass.
I am either forced to do it under a directive, as suggested on here, which returned me no results whatsoever, or edit the websocket itself, which I cannot do either, due to the app that I am running being closed source.
I have tried with the following:
ProxyPassMatch "^/?type=player&EIO=3&transport=websocket&sid=(.*)$" "ws://127.0.0.1:3000/socket.io/?type=player&EIO=3&transport=websocket&sid=$1" ProxyPassReverse "^/?type=player&EIO=3&transport=websocket&sid=(.*)$" "wss://127.0.0.1:3000/socket.io/?type=player&EIO=3&transport=websocket&sid=$1"
but it was not providing any working result. I have tried with different regex expressions as well, specifying the full path and even specifying the current websocket's sid, but nothing has worked. I always receive a 400 Bad request error in response and nothing related in the Apache2 logs.
I would appreciate any assistance.