const https = require('https'); const fs = require('fs'); const express = require('express'); const app = express();
app.get('/', (req, res) => { res.send('Hello from localhost:11501'); });
const options = { key: fs.readFileSync('server.key'), cert: fs.readFileSync('server.cert') };
It looks like you're referencing a localhost address with port 11501 — but the URL is missing the colon after https (should be https://localhost:11501 ).
const https = require('https'); const fs = require('fs'); const express = require('express'); const app = express();
app.get('/', (req, res) => { res.send('Hello from localhost:11501'); }); https //localhost 11501
const options = { key: fs.readFileSync('server.key'), cert: fs.readFileSync('server.cert') }; const https = require('https'); const fs = require('fs');
It looks like you're referencing a localhost address with port 11501 — but the URL is missing the colon after https (should be https://localhost:11501 ). const https = require('https')
Powered by CMSimple | © 2014 Caddy Corporation