I have an EC2 instance running Ubuntu 18.04, with apache2 server.
I am able to connect to it via PuTTY and via FileZilla and view the server.
The server is running, there is the
index.html file that's created by apache2 under
/var/www, but still when I type in my public IPv4 address in the browser, I cannot connect and view the apache2 welcome page (Cannot connect to it)
What may be the cause? Is it possible that it's because I am on free tier and I am already running another EC2 instance? (Which is working fine)
*Edit: I ran the following commands and these are the outputs:
netstat -plunt | grep "443 \|80 "
(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) tcp6 0
0 :::80 :::* LISTEN
curl -I http://localhost
HTTP/1.1 200 OK Date: Mon, 31 Dec 2018 16:39:42 GMT Server: Apache/2.4.29 (Ubuntu) Last-Modified: Mon, 31 Dec 2018 12:54:24 GMT ETag: "2bb4-56f5oe88329x4" Accept-Ranges: bytes Content-Length: 10918 Vary: Accept-Encoding Content-Type: text/html