URGENT: unreachable web server on Ubuntu 18.04 running on EC2/AWS

M. Fioretti mfioretti at nexaima.net
Thu Feb 20 17:27:08 UTC 2020


Greetings, I have installed and maintain several websites with apache
2 on Ubuntu and other linux flavours, but this is the first time I do
it on an EC2/AWS virtual server, so I need help to see if the problem
below (due to some error of mine, most likely) is on the Ubuntu or the
AWS configuration side.

I have enabled an UBUNTU 18.04 image, created a key pair on it,
installed the public key on my computer. The EC2 management console
says the instance is running, with public DNS
example.compute.amazonaws.com and a certain public ip4 address.

I have connected to that image with ssh:

ssh -i keyfile.pem username at example.compute.amazonaws.com

installed apache 2 with apt and told ufw to allow incoming
connections:

sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
Apache                     ALLOW       Anywhere
OpenSSH                    ALLOW       Anywhere
Apache (v6)                ALLOW       Anywhere (v6)
OpenSSH (v6)               ALLOW       Anywhere (v6)

sudo systemctl status apache2 says that Apache is running, and indeed,
if in the SSH console I type "w3m http://127.0.0.1" I do see the
Apache welcome page.

But if I tell my browser to visit http://example.compute.amazonaws.com

(i.e. same domain I successfully use to connect via ssh) it times out

What am I missing? Surely something embarrassing, but since I'm in a
bit of a hurry, any help is welcome.

TIA,
Marco

-- 

M. Fioretti http://mfioretti.com                   http://stop.zona-m.net

Your own civil rights and the quality of your life heavily depend on how
software is used *around* you




More information about the ubuntu-users mailing list