Tuesday, February 25, 2014

Reverse Proxy with url rewrite.

I have been working on a project where I needed two two web servers to act like they wore on the same domain.  In production this will probably be done with a reverse proxy like hapoxy, but for my dev box I need something that was windows friendly and that I could setup with out much effort for any of my team.

Turns out that node can do this and it's very easy to do. In just 12 lines of my own code I had a reverse proxy that would do url rewriting. Check it out.