I have written a WebSocket Server on PHP/Apache. I made the WebSocket Secure using mod_proxy_wstunnel. So, a user connects with WSS://socket.domain.com and the request is redirected to the (WS) protocol, e.g: ws://10.21.55.2:12345/ I'm using proxy pass just because the page is loaded over HTTPS and WwebSocket is on WS protocol.
here is how I redirect WSS ==> WS for socket.domain.com
ProxyPass / ws://10.21.55.2:12345
but the above code is giving 500 Internal Server Error. I dont know why its so. It was working before I rebooted the system.
here is the error log
AH01144: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
You might need to add the mod proxy_wstunnel
a2enmod proxy_wstunnel
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With