nodejitsu/node-http-proxy — pull request #241 by haraldrudell (2012-05-08 04:04:29+00:00)
Title: Default route and direct responses - awesomeness

for hostname only routing:
* a default route '*' is used for a host that is not listed, or a request with no host headers

* a route can be returned by the proxy directly, for example a custom 404 page (in the router):
'localhost': { statusCode: 404,
"headers": {
"Content": "text/html"
},
"data": "

Hostname undefined

Hostname undefined

"
}

I guess you could do redirects, 500s and all sort of interesting things