404 after installation


#1

Hi!

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 =(


#2

As stated in Ghost as a sub directory using NGINX, 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.


#3

oh, thanks! would have been great to have it mentioned in the installation instructions


#4

Feel free to suggest edits to the docs! There’s a button at the top right of the page :slightly_smiling_face:


#5

Thanks for the tip!

Made the edit suggestion!


#6

well, I set up a domain name, changed the url with config command, restarted ghost - still shows 404 =(


#7

had to wait for dns servers to update. worked after reinstalling


#8

Yeah if you’re too cheap to pay for premium DNS servers for your domain name it could take hours to propagate.


#9

Just move your DNS to CloudFlare.


#10

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.