Https //localhost 11501 ((exclusive)) Here

const https = require('https'); const fs = require('fs'); const express = require('express'); const app = express();

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 ). https //localhost 11501

app.get('/', (req, res) => { res.send('Hello from localhost:11501'); }); const https = require('https'); const fs = require('fs');

const options = { key: fs.readFileSync('server.key'), cert: fs.readFileSync('server.cert') }; const https = require('https')

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

If you do that will allow us to provide you with more and more FREE content.

There are a lot of expenses involved in running a free web and ads are a source to pay for those.

Please disable the ad blocker and refresh the page, thank you.