node-reverse-proxy

A reverse proxy in node.js for HTTP and Websockets

npm install node-reverse-proxy
14 downloads in the last week
28 downloads in the last month

A reverse proxy in node.js for HTTP and Websockets.

Using nodejitsu http-proxy

Requires node.js <= v0.4.x

Example usage :

var node_reverse_proxy = require('node-reverse-proxy');

var ip = '127.0.0.1';
var reverse_proxy = new node_reverse_proxy({
    'first_host.com' : ip + ':8082',
    'my.second_host.com' : ip + ':8081',
    'my.second_host.com/page/' : ip + ':8080',
    '' : ip + ':8080' // catch all other routes
});

reverse_proxy.start(80);
npm loves you