At the moment when using the router option when using httpProxy.createServer(), each of the entries in that object is required to have a hostname in order to be mapped correctly. It would be awesome if you could map solely based on the path.
If you were to deploy the same code on multiple machines which have slightly different host names, there's not really a way to do this "cleanly" since it's not possible to map based on path alone. Is there any reason this is not allowed at the moment?
I'll see if I can patch it and perhaps send a pull request. In the meantime it would be great to know if there's a specific reason this is currently now allowed.
Fixed in #380
If this is fixed why not close the issue?