Summary
Node.js can be pretty simple, but things get a bit more complicated when using Node.js to combine serving virtual hosts, some static sites, WebSockets (socket.io) used everywhere, some proxying to other apps, and some with request rewriting for hosting apps in a subdirectories.
The problem
I have a host running collection of websites and web apps, on various hostnames, running under various users, using various technologies. I often forget exactly how all of these things work, how they work together, and they have some subtle problems I don’t want to bother with having to resolve.
The proposed solution
It’s Node.js Apps all the way down!