Sha256: b874ff96b5e80d7e4f7e9e00104eb8ba102c1375750e6186d83950fc0bd6fff3

Contents?: true

Size: 576 Bytes

Versions: 26

Compression:

Stored size: 576 Bytes

Contents

/**
 * Module dependencies.
 */

var Connect = require('./../../lib/connect');

var localhost = Connect.vhost('localhost', Connect.createServer(function(req, res){
    res.writeHead(200, {});
    res.end('local vhost');
}));

var dev = Connect.vhost('dev', Connect.createServer(function(req, res){
    res.writeHead(200, {});
    res.end('dev vhost');
}));

module.exports = Connect.createServer(
    // Shared middleware
    Connect.logger(),
    // http://localhost:3000 server with own middleware
    localhost,
    // http://dev:3000 server with own middleware
    dev
);

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
vulcan-0.8.2 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.8.1 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.8.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.7.2 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.7.1 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.7.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.6.1 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.6.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.5.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.4.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.3.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.5 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.4 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.3 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.2 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.1 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.2.0 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.1.6 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.1.5 server/node_modules/connect-form/support/connect/examples/vhost/app.js
vulcan-0.1.4 server/node_modules/connect-form/support/connect/examples/vhost/app.js