I am not experienced with any of this. I have installed an AWS EC2 instance (ubuntu 22.04) but it does not serve the pages. I have install ed nginx but cannot reach the default page.
systemctl status nginx is showing the nginx is active.
Just calling nginx from the terminal I am getting a set of errors along the line nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
I have an elastic IP attached to the instance, and have opened the relevant ports via the security groups. For example whilst troubleshooting I decided to test webmin, and I have correctly opened port 10000 and can access the webmin page via [MyElasticIP]:10000. I cannot access the nginx default page http://[MyElasticIP]:80 though.
I did not initially open ports 80/443 during the EC2 instance setup though. I don't know if I missed anything. The Inbound rules look correct. Any ideas on how to troubleshoot this?
Edit : Adding 8080 to Inbound rules on the same security group, UFW allow 8080, and listen 8080 allows me to view the page correctly. Port 80 from the same group - is it being blocked elsewhere?
systemctl status nginx is showing the nginx is active.
Just calling nginx from the terminal I am getting a set of errors along the line nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)
I have an elastic IP attached to the instance, and have opened the relevant ports via the security groups. For example whilst troubleshooting I decided to test webmin, and I have correctly opened port 10000 and can access the webmin page via [MyElasticIP]:10000. I cannot access the nginx default page http://[MyElasticIP]:80 though.
I did not initially open ports 80/443 during the EC2 instance setup though. I don't know if I missed anything. The Inbound rules look correct. Any ideas on how to troubleshoot this?
Edit : Adding 8080 to Inbound rules on the same security group, UFW allow 8080, and listen 8080 allows me to view the page correctly. Port 80 from the same group - is it being blocked elsewhere?
Last edited: