Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 472 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 472 Bytes

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

Using nodejitsu http-proxy

Requires node.js <= v0.6.8

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);