In my package.json file I have:
"scripts": {
"start": "concurrently \"ng serve --host something.mydomain.com --port 4200 --live-reload false --env=prod\" \"gulp\""
},
When I run npm start then after a few seconds I am able to access my project in my browser at http://something.mydomain.com:4200
I would prefer to access the same system by going directly to https://something.mydomain.com (i.e. without the port number)
I have amended my package.json to:
"scripts": {
"start": "concurrently \"ng serve --host something.mydomain.com --port 80 --live-reload false --env=prod\" \"gulp\""
},
But when I run package.json I get:
Port 80 is already in use. Use '--port' to specify a different port.
If I run lsof -i :80 then nothing comes up so I am sure that port 80 is not taken. I suspect the issue is that port 80 is a protected port and as I am logged in as ec2-user then I don't have the correct permissions?
How can I run my project over port 80?