Answer the question
In order to leave comments, you need to log in
nginx. 404 error. How right?
The question is:
when the page does not exist, nginx redirects to 404.php,
but the problem is that the page is returned with a 200 OK status.
if I specify to give 404 header in 404php, then nginx goes into recursion.
How to force nginx to return status 404?
if anyone cares - I use nginx boilerplate. error_page 404 $document_root/404.php;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question