Can't connect to my domain after installing Let's Encrypt

I have an apache server in my Raspberry Pi with mySql, php, phpmyadmin...

The url of my webpage worked before I installed Let's Encrypt, but after installing it I only can access to my server by LAN. The SSL cert works when accessing through LAN, but if I use the domain it says ERR_CONNECTION_TIMED_OUT.

The ports are open (22 and 443). I tried it from a network outside the LAN.

Any idea?

UPDATE:

I checked if Apache is listening the right ports. This is what I got:

State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 80 127.0.0.1:mysql : users:(("mysqld",pid=554,fd=20)) LISTEN 0 5 *:5900 : users:(("vncserver-x11-c",pid=410,fd=11)) LISTEN 0 128 *:ssh : users:(("sshd",pid=440,fd=3)) LISTEN 0 5 :::5900 :::* users:(("vncserver-x11-c",pid=410,fd=10)) LISTEN 0 128 :::http :::* users:(("apache2",pid=2743,fd=4),("apache2",pid=2742,fd=4),("apache2",pid=2595,fd=4),("apache2",pid=2594,fd=4),("apache2",pid=2593,fd=4),("apache2",pid=2592,fd=4),("apache2",pid=2591,fd=4),("apache2",pid=2570,fd=4)) LISTEN 0 128 :::ssh :::* users:(("sshd",pid=440,fd=4)) LISTEN 0 128 :::https :::* users:(("apache2",pid=2743,fd=6),("apache2",pid=2742,fd=6),("apache2",pid=2595,fd=6),("apache2",pid=2594,fd=6),("apache2",pid=2593,fd=6),("apache2",pid=2592,fd=6),("apache2",pid=2591,fd=6),("apache2",pid=2570,fd=6))