Created
July 1, 2012 19:02
-
-
Save randylubin/3029265 to your computer and use it in GitHub Desktop.
Revisions
-
randylubin created this gist
Jul 1, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ var http = require('http'), httpProxy = require('http-proxy'); // // Setup proxy server with forwarding // var options = { router: { 'proxytest.randylubin.com': '127.0.0.1:7200', 'randylubin.com': '127.0.0.1:7200', 'pt2.randylubin.com': '127.0.0.1:4000', 'karma.randylubin.com': '127.0.0.1:15110', 'test.randylubin.com': '127.0.0.1:5555', 'stealthisidea.randylubin.com': '127.0.0.1:4000', 'ditchtheconference.com': '127.0.0.1:7000', 'www.ditchtheconference.com': '127.0.0.1:7000', 'www.randylubin.com': '127.0.0.1:7200' } }; var proxyServer = httpProxy.createServer(options).listen(80);