Using Apache’s ProxyPassReverse as a front-end for NodeJS

Why not use nginx, you say? I’ll go that route eventually, but right now my Linode has some important stuff running on it. So I’m avoiding downtime and this allows for quick reloads and not complete reworking. Maybe that’s a wimpy excuse… and maybe I need another Linode (yes please!).

There are some good examples of using nginx to front-end Node (DailyJS, HowToNode.org).

I use name-based virtual hosting with Apache2 on Ubuntu 10.04 on one IP. One virtual host file for each domain, Apache pulls them all in… pretty straightforward.

I’m also running ‘ufw’ to restrict traffic to ssh and http over port 80, so port 8100 is not accessable from the Internet.

And it works, so yay.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>