Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save codesorter2015/5ec72fed6cdfd0e4175730a51a5a2d4c to your computer and use it in GitHub Desktop.
Save codesorter2015/5ec72fed6cdfd0e4175730a51a5a2d4c to your computer and use it in GitHub Desktop.
Apache Proxy Example1
ProxyRequests Off
ProxyPreserveHost On
<Proxy pos.##REDACTED###.za>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteCond %{HTTP:Connection} Upgrade [NC]
RewriteRule /(.*) ws://localhost:8080/$1 [P,L]
ProxyPass /socket.io http://localhost:8080/socket.io/ retry=0 timeout=5
ProxyPassReverse /socket.io http://localhost:8080/socket.io/
<Location /socket.io>
Order allow,deny
Allow from all
</Location>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment