node.js - expressJS 4.x + vhost + SSL/HTTPS -


i not familiar ssl wondering missing make vhost + expressjs ssl connected. code works virtualhost+ expressjs not https. port open.

var options = {    key: fs.readfilesync("ca.key"),    cert: fs.readfilesync("ca.crt")  }    var main = express();  if (!module.parent) main.use(logger('dev'));    main.get('/', function(req, res){    //  });      var app = module.exports = express();  app.use(vhost('myappblahbblah.com', main));    var server = https.createserver(options, app);  server.listen(443);


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -