Is there any way I can run vhosts on Express with https? My current code (non-SSL) looks like this:
var express = require('express');
var vhost = require('vhost');
var path = require('path');
var appOne = express();
var appTwo = express();
var appVhosts = module.exports = express();
appOne.use(express.static(path.join(__dirname, 'pages')));
appTwo.get('/', function(req, res){
res.send('That service isn\'t up right now!')
});
app.use(vhost('siteone.com', appOne));
app.use(vhost('sitetwo.com', appTwo));
appVhosts.listen(80);
However, as far as I know, the https module only accepts one ssl cert.
You need to define SSL Options for each app and assign to each app as follows:
Note: I assume
appOneis the main app.