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?
curl -I http://localhostreturn a 200 status? If yes, I'd check that the host is in a public subnet in your VPC, check if a host-based firewall is blocking the port, etc.netstat -plnt. If there's nothing on port 80 and 443 then your apache config must be lame.