I’ve installed ghost by instruction on an ubuntu 16.0.4. Everything went fine except one thing - when prompted for URL, I entered a domain name, but I’am accessing the site via IP address. I changed the url with a command. But when I open it ( http://176.112.216.205) it shows 404 (same for /ghost).
No errors were shown during installation, everything is running ok. I deleted the “nginx succesfully installed” html file.
Restarting ghost doesn’t help =(
As stated in Ghost as a sub directory using NGINX - #4 by Hannah, Ghost only configures the webserver to proxy requests to Ghost for the domain, not the server. What this means for you is you can’t access Ghost by direct IP access - you need to access it by the domain.
Since you deleted the nginx is installed page, nginx (your webserver) has nothing to serve, so it responds with a 404 because no resource exists to respond with.