Last active
November 23, 2019 03:26
-
-
Save draem/773f5fa4c2b68c09ed9a49d8a4cd1422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http=require('http'),httpProxy=require('http-proxy'); | |
var proxy=httpProxy.createProxyServer(); | |
http.createServer(function(req,res){ | |
proxy.web(req,res,{target:'http://10.96.0.1/'}); | |
}).listen(80); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment