Catching 400, 404 Errors FCGI

Maxim Dounin mdounin at mdounin.ru
Wed Jul 6 11:28:32 MSD 2011


Hello!

On Tue, Jul 05, 2011 at 11:43:11PM -0400, David J. wrote:

> 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/aderet.net/;
>         }
> 
> 
> But it still returns the FCGI Error page?
> 
> Any ideas what I may be doing wrong?

fastcgi_intercept_errors on;

http://wiki.nginx.org/HttpFcgiModule#fastcgi_intercept_errors

Maxim Dounin



More information about the nginx mailing list