daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Mar 18th, 2013 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var http = require('http');
  2. var httpProxy = require('http-proxy');
  3.  
  4.  
  5.  
  6. var proxyOptions = {
  7.   pathnameOnly: true,
  8.   router: {
  9.     '/app': 'localhost:8000',
  10.     '/accounts': 'localhost:8001'
  11.   }
  12. }
  13.  
  14. httpProxy.createServer(
  15.   require('./lib/proxy_logger')(),
  16.   proxyOptions
  17. ).listen(3000);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top