subdomains using http-proxy does not display node running app
<p>I am following <a href="http://blog.nodejitsu.com/http-proxy-intro/" rel="nofollow">http://blog.nodejitsu.com/http-proxy-intro/</a> to write up my proxy server to point sub domains to node apps running on different port</p>

<pre><code>var http = require('http'),  
httpProxy = require('http-proxy');

//
// Just set up your options...
//
var options = {  
  hostnameOnly: true,
  router: {
    'localhost': '127.0.0.1:80'
    'sub.localhost': '127.0.0.1:9012',
  }
}

//
// ...and then pass them in when you create your proxy.
//
var proxyServer = httpProxy.createServer(options).listen(80)
</code></pre>

<p>When i run this file using node and try to access <code>localhost</code> or <code>sub.localhost</code>, I get this error back. I cant really understand whats going wrong.</p>

<pre><code>Error: Must provide a proper URL as target
    at ProxyServer.&lt;anonymous&gt; (D:\myProjects\bitbucket\temp\node_modules\http-proxy\lib\http-proxy\index.js:68:35)
    at Server.closure (D:\myProjects\bitbucket\temp\node_modules\http-proxy\lib\http-proxy\index.js:125:43)
    at emitTwo (events.js:87:13)
    at Server.emit (events.js:172:7)
    at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:525:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
</code></pre>