Apache 2.4 ProxyPass Configuration
See original GitHub issueWith 0.9 I was able to proxy our websockets through Apache 2.4 using the following config:
ProxyPass /socket.io/1/websocket ws://localhost:8082/socket.io/1/websocket
ProxyPassReverse /socket.io/1/websocket ws://localhost:8082/socket.io/1/websocket
ProxyPass /socket.io/ http://localhost:8082/socket.io/
ProxyPassReverse /socket.io/ http://localhost:8082/socket.io/
I’m attempting to migrate to 1.0.6 now and I immediately noticed that the socket endpoint changed, but updating the ProxyPass config like so does not seem to do the trick.
ProxyPass /socket.io/?EIO=2&transport=websocket ws://localhost:8082/socket.io/?EIO=2&transport=websocket
ProxyPassReverse /socket.io/?EIO=2&transport=websocket ws://localhost:8082/socket.io/?EIO=2&transport=websocket
ProxyPass /socket.io/ http://localhost:8082/socket.io/
ProxyPassReverse /socket.io/ http://localhost:8082/socket.io/
Chrome reports over and over again that it receives a 400 error when trying to open the websocket. There’s no output in the console on the server to indicate that any connection attempt was received (DEBUG=socket.io).
Is there some other configuration factor that I need for this to work?
Issue Analytics
- State:
- Created 9 years ago
- Comments:37 (4 by maintainers)
Top Results From Across the Web
mod_proxy - Apache HTTP Server Version 2.4
Apache HTTP Server can be configured in both a forward and reverse proxy (also known as gateway ) mode. An ordinary forward proxy...
Read more >How to setup an Apache reverse proxy server example
Reverse proxy setup steps · Install the Apache Web Server · Install and configure the backend origin servers · Enable the mod_proxy and...
Read more >How To Use Apache HTTP Server As Reverse-Proxy Using ...
In this DigitalOcean article, we are going to see set up Apache on Ubuntu 13 and use it as a reverse-proxy to welcome...
Read more >Apache 2.4 as a Reverse Proxy | By Michael Whittle
For the purpose of this tutorial we will configure the reverse proxy with the IP address 10.0.0.10 on HTTP port 80 and the...
Read more >Configure a reverse proxy - Apache
Configure Apache to work as a reverse proxy · Open the Apache httpd.conf file in the following directory: · Make sure the following...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m using this config:
Before, install proxy modules:
Is ok on Apache/2.4.7
Hi,
I have used “Connection” header detection to resolve it.
See issue at: https://github.com/faye/faye/issues/387