node.js - nodejs express not working with https -


when run express application https, https request aren't handled, http request working correctly:

var https = require("https"); var http = require("http"); var express = require("express"); var app = express(); app.get(....) ... app.post(...)  http.createserver(app).listen(80); https.createserver({key: privatekey, cert: certificate},app).listen(443); 

have experience in using express https


Comments