После переключения Web сервера в режим работы Nginx + PHP-FPM, возникает ошибка 404 с текстом:
[error] 537#0: *2382 openat() "/var/www/site" failed (2: No such file or directory), client: XXX.XXX.XX.X, server: domain.local, request: "GET /page HTTP/1.1", host: "domain.local", referrer: "http://domain.local/
В моем случае решилась вставкой в раздел:
location / {
location ~ [^/]\.ph(p\d*|tml)$ {
try_files /does_not_exists @php;
}
}
Секцию:
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php;
}
Отдельное спасибо