Update index.js

The regex here breaks with the old express.vhost and doesn't work for wildcard subdomains (*.mydomain.com). This reverts it to express.vhost regex. Here's a test:

    var connect = require('connect');
    var vhost = require('vhost');

    var vapp = connect();

    vapp.use('/', function (req, res) {
      res.end('Hello from Connect!\n');
    });
    var app = connect();

    app.use(vhost('*m.mydomain.com', vapp)); // doesnt work, 404

    // app.use(vhost('dev.m.porntube.com', vapp)); // works

    app.listen(3000);