-
-
Save Jahroots/cd41ab65ab157f597a2afc1e790baa1a to your computer and use it in GitHub Desktop.
socket.io and apache reverse proxy fix
This file contains 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
I modified the source code of socket.io-client/socket.io.js 1.0.6 | |
line 3387: | |
return schema + '://' + this.hostname + port + this.path + query; | |
Changed to: | |
return schema + '://' + this.hostname + port + this.path + 'ws/' + query; | |
And my ProxyPass config: | |
ProxyPass /socket.io/ws/ ws://localhost:60002/socket.io/ | |
ProxyPassReverse /socket.io/ws/ ws://localhost:60002/socket.io/ | |
ProxyPass /socket.io/ http://localhost:60002/socket.io/ | |
ProxyPassReverse /socket.io/ http://localhost:60002/socket.io/ | |
It works well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment