How do I stop getting a 404 not Found, nginx message?

I'm able to load my website by way of its "www" host, but when I try to access it without "www" or by using the server's IP address, I get a "404 not Found, nginx/1.14.0 (Ubuntu)" message. What can I do to fix this?

1 Reply

I'm sorry to hear that you are having an issue with your website. This type of error message usually points towards a configuration issue. The first step is to review your nginx.conf file. There is a great response in this existing Community site post that can get you started in the right troubleshooting direction.

It will also be helpful to review your Nginx error logs which can typically be found at the locations listed below.

/var/log/nginx/error.log
/var/log/nginx/access.log.

If you still need assistance, feel free to copy your configuration file in a reply, and a member of the Community may be able to help you further. Remember to make sure to redact any sensitive information.

I hope this helps!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct