Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

200 response on Nginx 404 error page

My server uses a custom 404 page. Is't possible to get 404 server response on a direct request of 404 page? Now: URL: http://mydomain.xxx/404.php HTTP/1.1 200 OK Server: nginx

like image 404
Anth0ny Avatar asked Aug 14 '13 16:08

Anth0ny


1 Answers

you can simply do

error_page 404 =200 /404.php;
like image 57
Mohammad AbuShady Avatar answered Sep 26 '22 20:09

Mohammad AbuShady