Getting a 404 error message from Nginx

Linode Staff

I'm getting a 404 message for my website and I'm not sure what's causing this. How do I check and fix this?

1 Reply

I would check the virtual host file for your domain and verify that the "root" path is pointing to the directory where your website files exist. For example, here's an entry from my website's virtual host file:

root /var/www/public_html/test_server;

You can also test your Nginx configuration using the following command:

nginx -t

We also have a few guides that you can reference regarding Nginx and how it's configured. I've provided some links for your reference:


Please enter an answer

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

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct