<VirtualHost *:443>
*********************
ProxyPass /socket.io/ http://127.0.0.1:2222/socket.io/
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule ^/?(.*) "ws://127.0.0.1:2222/$1" [P,L]