skip to Main Content

SOLUTION: I didn’t open port 80 in the security groups. Once doing that everything worked.

I have an AWS instance running Ubuntu. I installed Apache and Ngix with the following commands:

 sudo apt install apache2 apache2-utils libapache2-mod-python libapache2-mod-php
sudo service apache2 stop
sudo apt install nginx
sudo service nginx stop
sudo service apache2 start

From my understanding, if I go to the public DNS of my AWS instance, I should be getting the Apache test page. However, it is just timing out. I viewed /var/www/html and the index.html page is there, along with another .html page.

Is there something else I need to do? Or configure in AWS?

2

Answers


  1. Chosen as BEST ANSWER

    Open AWS Management Console. Go to Network & Security, then Security Groups. Highlight the correct item, click Inbound on the bottom. Add HTTP on port 80.


  2. You would definitely make sure port 80 is open and allowed.. open meaning your network rules in aws, allowed meaning ubuntu can use it;
    sudo ufw allow 80 does it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search