'Apache server does not show up on EC2 IP

I am trying to install apache2 on my EC2 instance.

I did the following steps: Launched an Ubuntu 16.4 instance with security group details

  • http - 80 - anywhere
  • https - 443 - anywhere

Once I login to my instance I did

sudo apt update
sudo apt install apache2

when I type

service apache2 status

it says that Apache is running

I assumed that after this if I go to my public IP address [xxx.xx.xx.xx] I would see the default apache server page. But I see This site can't be reached.

The process seems pretty straightforward, what am I doing wrong?



Solution 1:[1]

I had this stupid case, it made me reinstall dozens of times. Maybe my Security groups don't allow https://

Replace https:// with http:// if available.

It will work perfectly.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ??c chung nguy?n