Skip to content

Instantly share code, notes, and snippets.

@tomeast
tomeast / conditional-url-forwarding.js
Created May 3, 2011 06:54 — forked from indexzero/conditional-url-forwarding.js
Conditional URL rewrite forwarding
var http = require('http'),
httpProxy = require('http-proxy');
//
// Create a new instance of HttProxy to use in your server
//
var proxy = new httpProxy.HttpProxy();
//will match the root url or
//a request for any html pages