node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

proxy-node

Small wrapper over http-proxy

I use this to run multiple domains/websites on a single server.
Each app listens on a different port. This does not control their configuration.

var servers = {
    'foo.com': '127.0.0.1:8001',
    'bar.com': '127.0.0.1:8002'
}
 
require('./proxy-node.js')(servers, 80)