title: Why do I have to type the ":80" in https://localhost:80 for my website to load?
body: <p>I recently secured my website on node.js to use https instead of just plain http. However, once I did this, I realized that I had to type out the :80 suffix if I wanted to get to my website to load. Why is this? Doesn't chrome default to port 80 and shouldn't <a href="https://localhost" rel="nofollow noreferrer">https://localhost</a> suffice?</p>
  
  <pre><code>const port = 80;
  
  https.createServer({
      key: fs.readFileSync('./private/ssl/server.key'),
      cert: fs.readFileSync('./private/ssl/server.cert')
  }, app)
      .listen(port, function () {
          console.log('Server running on port: ' + port);
      });
  
  app.get('/', (req, res) =&gt; {
      res.sendFile('index.html', { root: path.join(__dirname, './') });
  });
  
  app.use(express.static('./public'));```
  </code></pre>