Guest User

Untitled

a guest
Jan 22nd, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. var util = require('util'),
  2. colors = require('colors')
  3. http = require('http'),
  4. httpProxy = require('./lib/node-http-proxy');
  5.  
  6. //
  7. // Http Proxy Server with Proxy Table
  8. //
  9. httpProxy.createServer({
  10. router: {
  11. 'localhost': 'localhost:9000',
  12. //Tested : you can add this kind of following lines to setup advenced routing rules
  13. // 'localhost/app1': 'localhost:9001',
  14. // 'app2.localhost': 'localhost:9002',
  15. ∕/etc
  16. }
  17. }).listen(8080);
Add Comment
Please, Sign In to add comment