Website is not accessible: 404 Not Found nginx

Created:

2016-11-16 12:52:18 UTC

Modified:

2017-08-16 17:11:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Website is not accessible: 404 Not Found nginx

Applicable to:

  • Plesk for Linux

Symptoms

Website is not accessible with 404 Not Found error. The following message in domain's log /var/www/vhosts/system/example.com/logs/error_log :

2013/10/21 08:03:26 [error] 2010#0: *1943 open() "/var/www/vhosts/example.com/httpdocs/index.html" failed (2: No such file or directory), client: 203.0.113.2, server: ba server.name.tld, request: "GET / HTTP/1.1", upstream: "http://204.0.114.3:7080/", host: "host.name.tld"

OR

[error] [client 203.0.113.2] Directory index forbidden by Options directive: /var/www/vhosts/example.com/httpdocs/

The index file inside of the domain's DocumentRoot directory has capital letters in its name - Index.html , iNdex.html , etc.

Cause

Index file ( index.html, index.php , etc) is missing under domain or has capital letters in its name.

Resolution

Recreate index.html file

Rename index file with capital letters to the index.html file with lower case letters, since the Linux is case sensitive OS and Index.html and index.html are different files

Have more questions? Submit a request
Please sign in to leave a comment.