Articles in this section

Site shows 404 not found on Plesk server: nginx error: index.html is not found (2: No such file or directory)

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

  • Domain is inaccessible with 404 error.
    Rewrite rules specified in /var/www/vhosts/example.com/httpdocs/.htaccess file do not work.
  • FPM application served by nginx handler is set in Domains > example.com > PHP Settings .
  • In /var/www/vhosts/example.com/logs/error_log the following error is shown:

    CONFIG_TEXT: [error] 20463#0: *1329372 "/var/www/vhosts/example.com/httpdocs/en/component/users/index.html" is not found (2: No such file or directory)

Cause

When FPM application served by nginx is enabled, the website stops using .htaccess file and rewrite rules from .htaccess are ignored.

Resolution

 

Was this article helpful?

Comments

1 comment
Date Votes
  • This tutorial its not accurate.
    you must add the string of mod rewrite (in my case is wordpress)

    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     RewriteBase /
     RewriteRule ^index\.php$ - [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]
    </IfModule>

    and than, transform to nginx 
    so you apply and will work

    0

Please sign in to leave a comment.