Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created September 8, 2011 03:41
Show Gist options
  • Save minodisk/1202545 to your computer and use it in GitHub Desktop.
Save minodisk/1202545 to your computer and use it in GitHub Desktop.
Nodeでproxy
npm install http-proxy
var httpProxy = require('http-proxy');
httpProxy.createServer({
router: {
'www.example.com': 'localhost:8000',
'foo.example.com': 'localhost:8001',
'bar.example.com': 'localhost:8002',
'example.com': 'localhost:8000'
}
}).listen(80);
sudo -s
node proxytable.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment