Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
404 accessing site by IP, but works with domain name
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.
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.×