URGENT: unreachable web server on Ubuntu 18.04 running on EC2/AWS
Bob
ubuntu-qygzanxc at listemail.net
Thu Feb 20 19:38:03 UTC 2020
** Reply to message from "M. Fioretti" <mfioretti at nexaima.net> on Thu, 20 Feb
2020 18:27:08 +0100
> 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
To me this URL stood out like a sore thumb.
I get several spam messages a week from amazonaws.com. Here is a Receive
header from a spam I got yesterday.
Received: from sling.com (ec2-34-212-154-137.us-west-2.compute.amazonaws.com
[34.212.154.137]) by mx5.pacifier.net (Postfix) with ESMTP id 8E8CA432B0 for
<xxxxxxx at xxxxxxxxx.com>; Wed, 19 Feb 2020 14:26:30 -0800 (PST)
You may want to check your email server for an open relay.
> (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
--
Robert Blair
Beer is proof that God loves us and wants us to be happy. -- Benjamin Franklin
More information about the ubuntu-users
mailing list