Answer the question
In order to leave comments, you need to log in
How to make ssl socket.io work?
Good evening.
I put the site on the SSL server, but I have a chat on sockets, what should I do so that, for example , https://test.ru:3002 - works over SSL?
Answer the question
In order to leave comments, you need to log in
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/socket.io [NC]
RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://localhost:3002/$1 [P,L]
ProxyPass /socket.io/ws/ ws://localhost:3002/socket.io/
ProxyPassReverse /socket.io/ws/ ws://localhost:3002/socket.io/
ProxyPass /socket.io/ http://localhost:3002/socket.io/
ProxyPassReverse /socket.io/ http://localhost:3002/socket.io/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question