Skip to content

Instantly share code, notes, and snippets.

@gildean
Created September 24, 2012 05:26
Show Gist options
  • Save gildean/3774377 to your computer and use it in GitHub Desktop.
Save gildean/3774377 to your computer and use it in GitHub Desktop.
node-http-proxy-example
var httpProxy = require('http-proxy'),
httpOptions = {
router: {
'someservername' : '127.0.0.1:3001',
'otherservername' : '127.0.0.1:3002',
'/*' : '127.0.0.1:3000'
}
},
httpProxyServer = httpProxy.createServer(httpOptions);
httpProxyServer.listen(80);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment