we using apache server proxy server redirecting http websocket requests. websocket requests working fine long use apache server's ipaddress below:
ws://<ipaddress>/app/systemnotifications/450/c3zym9e6/websocket
but when change ipaddress domain name, websocket connection not getting established url below:
ws://<domain-name>/app/systemnotifications/450/c3zym9e6/websocket
the error recieved :
websocket connection 'ws://<domain-name>/app/systemnotifications/450/c3zym9e6/websocket' failed: websocket closed before connection established. whoops! lost connection undefined
please find below configuration redirecting websocket requests in apache server(httpd.conf file):
rewriteengine on rewritecond %{http:upgrade} ^websocket$ [nc] rewritecond %{http:connection} ^upgrade$ [nc] rewriterule .* ws://<destination-server-ip>:8080%{request_uri} [p]
Comments
Post a Comment