I couldn't find any good examples combining express routes (vhost specifically) and node-http-proxy, and especially not that worked with WebSockets. While converting a slew of low-traffic sites and apps, all hosted on one box, from an old hybrid HAProxy/Apache/Node stack to just Node, I put together a blog post [1] about it, with the code necessary to combine these (have to do a reasonable amount of manual work to combine express vhosts, proxies, and WebSockets). Also, mostly for amusement's sake, I also wrote a companion post [2] about all of the things that went wrong while supporting some legacy clients hitting this server - Node's HTTP parser was throwing exceptions on some slightly malformed requests and I had to do a few things to work around it.
Hope someone finds this useful! Jimb Esser [1] http://jimbesser.wordpress.com/2014/10/20/its-node-js-all-the-way-down/ [2] http://jimbesser.wordpress.com/2014/11/29/the-horrible-things-peoples-routers-do-to-my-packets/ -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7f1d4000-5abb-4a4c-9748-d0485e6769df%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
