Tuesday 6 June 2017

Forward all requests in in Node.js/Koa server from http://server/api/* to another ip?

I'm using Node.js and Koa to build a web server. However, I'd like to merge it with another server located at 192.168.1.5:80. How can I make it so that all requests to {my web server}:80/api/* are exactly the same as requests to 192.168.1.5:80/api/*.

Thanks in advance!



via Taconut

No comments:

Post a Comment