I am using node js express with socket.io and apache for my reverse proxy. Below is my reverse proxy configuration.
ProxyPass /chatApp http://localhost:3000/
ProxyPassReverse /chatApp http://localhost:3000/
So, my application will be accessed by https://server.com/chatApp
. Below is how socket is defined in my html.
var socket = io("https://server.com/chatApp")
The browser throws the following error.
GET https://server.com/socket.io/?EIO=3&transport=polling&t=M9zVwUq 404 (Not Found)
But, when I hit the below URL in the browser, I am getting some results.
https://server.com/chatApp/socket.io/?EIO=3&transport=polling&t=M9zVwUq
Even though, I have mentioned /chatApp in my html (while defining socket variable), my application is not calling server.com/chatApp/socket.io/?EIO..... It's skipping chatApp in the URL, and just calling server.com/socket.io/?EIO...
I've tried the solution to this post. No luck.