简体   繁体   中英

ProxyPass Failed: Error during WebSocket handshake: Unexpected response code: 500

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, eg: 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.

您可能需要添加 mod proxy_wstunnel a2enmod proxy_wstunnel

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM