I'm writing a Node.js service with SocketIO and offer multiple services via that Node.js service. Originally, I used additional path for such task, for example,
example.com/api <- routes
example.com/livechat <- SocketIO
However, the service is being moved to a virtual host with subdirectory. So instead of 'example.com' as root, I get 'example.com/nodejs/'. Problem is, socketIO still thinks it's reaching out to 'example.com', so all socket request end up in 404.