Skip to content

Instantly share code, notes, and snippets.

@marshallswain
Created June 26, 2017 14:39
Show Gist options
  • Save marshallswain/5cad1c97daf682b09b3e6288f9164624 to your computer and use it in GitHub Desktop.
Save marshallswain/5cad1c97daf682b09b3e6288f9164624 to your computer and use it in GitHub Desktop.
Feathers socket.io behind Apache reverse proxy - credit to j2l4e
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteRule ^/(.*) ws://localhost:3030/$1 [P,L]
ProxyPass / http://localhost:3030/
ProxyPassReverse / http://localhost:3030/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment