Created
May 28, 2019 09:51
-
-
Save codesorter2015/5ec72fed6cdfd0e4175730a51a5a2d4c to your computer and use it in GitHub Desktop.
Apache Proxy Example1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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