1
votes

I am trying to deploy a node.js app to Google Compute and have supervisord run it.

I have it working just fine when I try to have the app listen on port 3000.

When I try to move it to 443 so that I can use https so access the server it gives me errors when starting the app:

enter image description here

var express = require('express');

var app = express();

app.get('/', function (req, res) {
  res.status(200).send('API online');
});

app.listen(443, function () {
  console.log(`API online`);
});
1

1 Answers

0
votes

There is probably already a process which is attached to port 443. Maybe Apache or Nginx? You can check with: sudo netstat -nlp|grep 443