Help Needed: Website Homepage Showing an Nginx 404 Error

Hi everyone, I’m having a problem with my website, southerncalidjs.com. The homepage shows “404 Not Found — nginx/1.28.3 (Ubuntu),” but other pages load. My public_html folder contains index.html and index.htm, my hosting account is active, and the dashboard shows 2% bandwidth usage.

Does anyone know what could cause this or what I should check? Any help would be greatly appreciated. Thank you!

Hi @Southern_Cali_DJs,

It sounds like you’re experiencing a common issue with your Nginx configuration. The “404 Not Found” error typically indicates that the server can’t find the requested resource, which in your case is the homepage.

Here are a few things you can check:

  1. File Permissions: Ensure that your public_html directory and its contents have the correct permissions. The directory should generally be set to 750 and files to 644. This allows the web server to read the files.

  2. Index File: Since you have both index.html and index.htm, make sure that your Nginx configuration is set to recognize these as index files. You may need to check your Nginx configuration file to ensure it includes both files in the index directive.

  3. Nginx Configuration: If you’re using a custom Nginx configuration, ensure that it’s properly set up to serve your homepage. Sometimes, misconfigurations can lead to 404 errors.

If you’ve checked these and are still having issues, our team can help you further with your specific Nginx setup.

Feel free to reach out if you need more assistance!

Best,
– Ashley, Gigbuilder Support

Hi Ashley, thank you. I checked the file permissions: public_html is set to 755, and the index files are set to 644. The index files are in public_html, and other pages on my site load; only the homepage returns a 404.

Could you please check whether the Nginx document root for my main domain points to /home/djfreak/public_html and whether Nginx is configured to recognize index.html or index.htm? I don’t have access to the server’s Nginx configuration.

Hi @Southern_Cali_DJs,

Thank you for providing the details about your issue. It sounds like you’ve already checked the file permissions, which is great!

Regarding your question about the Nginx document root and configuration for index.html or index.htm, I recommend reaching out to your hosting provider’s support team. They can verify if the document root is correctly set to /home/djfreak/public_html and ensure that Nginx is configured to recognize the appropriate index files.

If there’s anything else I can assist you with, feel free to ask!

Best,
– Ashley, Gigbuilder Support