How to make nginx not give out the answer php-fpm, but the standard page 404, if php-fpm returns 404?
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?
Apr 20 '16 share 20:46
Usually, as a rule, they want the opposite... :-D
Apr 20 '16 at 20:47
Apr 20 '16 at 22:03
Add the following to the nginx config:
Apr 20 '16 at 23:13
How to make nginx + php-fpm give a standard 404 wordpress page?
What to do if the author of the question noted the answer to his answer, but my answer is much better?
On the 404 page, the status check services give the code 200, but the logs show 404. How to make a seo-person happy?
Why does Nginx give 302 answer instead of 404?
Why does NGINX give its 404 instead of the 404.php template and how to fix it?