How to recover my site

Try with sudo:
sudo netstat -pant

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 26886/systemd-resol
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 26624/sshd
tcp 0 364 172.31.5.29:22 41.220.129.226:36116 ESTABLISHED 9979/sshd: ubuntu [
tcp6 0 0 :::443 :::* LISTEN 4359/apache2
tcp6 0 0 :::80 :::* LISTEN 4359/apache2
tcp6 0 0 :::22 :::* LISTEN 26624/sshd
tcp6 0 0 172.31.5.29:80 172.31.16.154:40858 TIME_WAIT -
tcp6 0 0 172.31.5.29:80 172.31.4.167:13652 TIME_WAIT -
tcp6 0 0 172.31.5.29:80 172.31.4.167:13658 TIME_WAIT -
tcp6 0 0 172.31.5.29:80 172.31.16.154:40852 TIME_WAIT -

How many instances do you have? Your website has two IP addresses. Is it an ELB? How is it configured?

OK. So Apache is listening on 80 and 443 (this is good).

Now you said you opened UFW:

Let's verify that is in place:
sudo ufw status

only one instance, one ELB - after all when setting an ELB it asks for http or https - when choose https u need to go to IAM and amazon ssl mgmt stuff…

Right. Have you set up an HTTPS listener?

1 Like

Status: active

To Action From


22/tcp ALLOW Anywhere
Apache Full ALLOW Anywhere
22/tcp (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)

If I understand it correct, these are only tcp6 - connections.

But I don't see an ipv6, only ipv4.

Host T IP-Address is auth. ∑ Queries ∑ Timeout
pagesmade.com A 13.126.192.195 yes 1 0
A 52.66.95.210 yes 1 0
AAAA yes
www.pagesmade.com A 13.126.192.195 yes 1 0
A 52.66.95.210 yes 1 0
AAAA yes

Is there an ipv4 - Apache?

It must be an AWS setting.

:::80 includes IPv4 & IPv6.
:::443 includes IPv4 & IPv6.

1 Like

Good to know, thanks.

no, i think it has cost, IAM and aws certificates one month free…

What about the AWS firewall (not UFW) ?

i havent seen this, were can it be?

ACM certificates are free.

There might be some kind of API request expense but it shouldn't be significant.

You could also automate uploading Let's Encrypt certificates to ACM, but it's simpler not to.

so i need to copy .pem and import there?

Yes, you can script automatically uploading a Let’s Encrypt certificate and key to ACM. Or you can use one of Amazon’s automatically managed certificates.

ok, shall try and see…

It worked u can try it with https, thanks.

i can see both http and https are opening, What should i do?

TLS(SSL) is enabled and working:
https://www.ssllabs.com/ssltest/analyze.html?d=pagesmade.com

Now you need to serve your site content: