Node.js in Production
blog.carbonfive.com
blog.carbonfive.com
This comes up a lot. In addition to the reverse proxy, you can also:
-- redirect port 80 to port 3000
iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
-- use authbind to grant port 80 access to an unprivileged user
http://manpages.ubuntu.com/manpages/hardy/man1/authbind.1.ht...However if you are using a load balancer in front of a handful of node.js app servers, does this offer any advantage over just using an arbitrary port > 1024?
Nope. It's only useful if you're using a single server, e.g. on a $5 DigitalOcean droplet.
Small plug, I wrote a node wrapper for digital ocean's API. https://github.com/hortinstein/brinydeep It would be interesting to use it to auto-scale based on feedback from haproxy or the nodes themselves when smashing it with siege.
When i get around to it I might write a followup to your article incorporating that and some of the other features!