How to make the correct proxying of websocket?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
19 views
Recently began migration of chat on your server that works on sockets. Faced with the problem that https:// Protocol to ws:// doesn't work. Googled it, the answer was uniform: "we Need to do proxy". In this case, I do not understand anything, so....
Here is the server working the socket: ws://194.58.121.250:7777
I tried to do a proxy, but nothing came out. That's what I was prescribed in the file apache2.conf:
ProxyPreserveHost On ProxyPass /websocket ws://194.58.121.250:7777 ProxyPassReverse /websocket ws://194.58.121.250:7777 

Hope someone will help :)
by | 19 views

2 Answers

0 like 0 dislike
Proxies don't need to do.
Just listen to wss i.e. to attach to the socket server ssl certificate for the domain.
And how to do it can be found in the dock of the module you are using for the socket server.
by
0 like 0 dislike
by

Related questions

0 like 0 dislike
5 answers
0 like 0 dislike
2 answers
asked Mar 26, 2019 by cat_crash
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
5 answers
110,608 questions
257,187 answers
0 comments
40,796 users