Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created June 21, 2012 18:53
Show Gist options
  • Save ovaillancourt/2967758 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2967758 to your computer and use it in GitHub Desktop.
var proxyServer = require('http-proxy').createServer({
router: {
"mydomain.com/rest" : "targetMachine:port"
}
});
proxyServer.listen(myPort);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment