I have a ubuntu 18 Virtual Machine on AWS and DB on AWS RDS.
I am trying to install Ghost on this machine. I successfully followed all the steps mentioned in this site: How to install Ghost, the official guide
The steps were successful and it also gave me a url to access and setup Ghost. But whenever I try to access ghost using that url, it always Throws Error 404.
Run this for the ghost instance status in the ghost root directory.
ghost status
Show these results also.
ghost log
sudo netstat -tulpen
systemctl status nginx
Just to confirm that you are using example.com not to public your dns name here , right?
You have to use your actual public IP or public DNS from aws instance for the URL.
You have to open the HTTP port (80) in the Inbound Rules of your security group for the virtual machine in aws also.