Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created January 11, 2017 08:50
Show Gist options
  • Save jbutko/7315525aa97be6c40dc050c4228bd60c to your computer and use it in GitHub Desktop.
Save jbutko/7315525aa97be6c40dc050c4228bd60c to your computer and use it in GitHub Desktop.
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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment