Catching 400, 404 Errors FCGI

David J. david at
Wed Jul 6 07:43:11 MSD 2011

I am trying to understand how to catch 400 and 404 errors being returned 
back from my FCGI server;

How do I specify a custom error page?

I tried

error_page  404 400              /404.html;
         location = /404.html {
             root        /app/www/;

But it still returns the FCGI Error page?

Any ideas what I may be doing wrong?


More information about the nginx mailing list