Hello,
I will try to briefly explain my problem in the hope that someone can give a suggestion.
I have successfully installed the Peerjs server on my ip address
Now i not want to use the 9001 port because some network are blocking port 9001 and i can not use port 80 because there is Apache running.
So I thought I'd find a solution using Apache 2.4 ProxyPass Configuration and mod_proxy_wstunnel
The Peerjs server needs some requests to be proxied through as HTTP, but others to use the websockets protocol and they are using the same URI PATH.
and
ws://mywebsite:9001/peerjs?key=peerjs&id=xxxxxxxxx&token=xxxxxxxx
I can not structure the ProxyPass Apache directive to catch the right path because they are equal for both protocols. Can i edit Peerjs server to have different URL for each protocol? I need a different URL for http:// and ws://
For example
and
ws://mywebsite:9001/otherurl?key=peerjs&id=xxxxxxxxx&token=xxxxxxxx
Thanks in advance for your answers