Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var util = require('util'),
- colors = require('colors')
- http = require('http'),
- httpProxy = require('./lib/node-http-proxy');
- //
- // Http Proxy Server with Proxy Table
- //
- httpProxy.createServer({
- router: {
- 'localhost': 'localhost:9000',
- //Tested : you can add this kind of following lines to setup advenced routing rules
- // 'localhost/app1': 'localhost:9001',
- // 'app2.localhost': 'localhost:9002',
- ∕/etc
- }
- }).listen(8080);
Add Comment
Please, Sign In to add comment