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
Add the following to the nginx config:
nginx.org/en/docs/http/ngx_http_fastcgi_module.htm...
fastcgi_intercept_errors on;
nginx.org/en/docs/http/ngx_http_fastcgi_module.htm...