S
S
Sergey Pugovkin2016-04-20 20:46:54
PHP
Sergey Pugovkin, 2016-04-20 20:46:54

How to force nginx to issue not a php-fpm response, but a standard 404 page if php-fpm returns 404?

nginx + php fpm If we request a non-existent file, we see the standard nginx error. If php returns a 404 code, then we DO NOT see the standard nginx error. And we see the response php. How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
neatsoft, 2016-04-20
@Driver86

Add to nginx config:
nginx.org/en/docs/http/ngx_http_fastcgi_module.htm...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question