Skip to content

Instantly share code, notes, and snippets.

@rederlo
Created October 19, 2017 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rederlo/9cecce31ff82a6627ce5dda6be30fdee to your computer and use it in GitHub Desktop.
Save rederlo/9cecce31ff82a6627ce5dda6be30fdee to your computer and use it in GitHub Desktop.
Proxy app node
<VirtualHost *:80>
ServerName my.domain.name
RewriteEngine On
RewriteCond %{QUERY_STRING} transport=polling
RewriteRule /(.*)$ http://localhost:7000/$1 [P]
ProxyRequests off
ProxyPass /socket.io/ ws://localhost:7000/socket.io/
ProxyPassReverse /socket.io/ ws://localhost:7000/socket.io/
ProxyPass /dir/path/ http://localhost:7000/
ProxyPassReverse /dir/path/ http://localhost:7000/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment