Home > proxy.js

proxy.js

Proxy.js is a project mainly written in JavaScript, it's free.

A node.js proxy

Simple node.js proxy

Use

var proxy = require('./proxy.js')

, sites = [{ host: 'example.com' , port: 8001 },{ host: 'anothersite.com' , port: 8002 },{ host: 'anothernothersite.com' , port: 8003 }];

http.createServer(function(req, res){

proxy.route(req, res, sites)

}).listen(80, '127.0.0.1')