EC2 Machine working but site not showing
Possible issue: Apach2 or Nginx server not working
sudo systemctl status apache2
If everything okay then this is not the issue, if not then try to restart
sudo service apache2 restart
If failed then type
You will found the error, fixed that & then restart the service again, hopefully, get fixed.