Skip to content

pouyajoon/node-reverse-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A reverse proxy in nodejs for HTTP and WebSockets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published