Report this

What is the reason for this report?

404 accessing site by IP, but works with domain name

Posted on June 7, 2020
Nadia K

By Nadia K

Miss

I followed this tutorial and successfully set up WordPress on my server (https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-18-04). The domain name (with and without www) takes me to the WordPress configuration page, but trying to access the site using the IP address gives me a 404.

Before installing WordPress, both the domain name and the IP address would take me to the site without any issues.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @NoodlesYum,

It is highly-likely this is related to your nginx configuration. I will give you some points to check, as well as some other posts from around the web:

  • Do you have other domain names linked to that IP?
  • Is your domain properly linked to your droplet?
  • Is your website behind a CDN?

Resources:

I hope this helps. Keep us posted!

Best regards,

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.