jbutko
1/11/2017 - 8:50 AM

Configure socket.io on apache server through https

Configure socket.io on apache server through https

# https://github.com/socketio/socket.io/issues/1942#issuecomment-204335448
ProxyPass / http://localhost:3999/
ProxyPassReverse / http://localhost:3999/

RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://localhost:3999%{REQUEST_URI} [P]