by yid · 12y ago · 0 comments
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.