nginx + php-fpm.If you request a non-existent file, we see the standard nginx error.If php returns 404 code, then we do NOT see the standard nginx error.And we see the answer php.How to fix?
  • Usually, as a rule, they want the opposite... :-D – Tame Tapir Apr 20 '16 at 20:47
  • fastcgi_intercept_errors – Hungry5 Apr 20 '16 at 22:03

1 Answers 1

Add the following to the nginx config:
fastcgi_intercept_errors on;