nginx 0.8.47 php-fpm error_page not working

Igor Sysoev igor at sysoev.ru
Mon Aug 9 13:19:06 MSD 2010


On Mon, Aug 09, 2010 at 12:35:48AM -0400, nginx_newbie wrote:

> Dear Edogawaconan / Igor,
> 
> I tried both the above corrections but still the problem remains the
> same. As suggested
> by Igor, I have removed
> 
> --------------------------------------------
> > if (-f $request_filename) {
> > break;
> > }
> -------------------------------------------
> 
> As for fastcgi_intercept_errors it is already ON as per the included
> fastcgi_params file.

Sorry, I missed it.
What should handle /error404.htm ?
If /error404.html should not be handled by PHP, but as usual static file,
then you need to set:

	error_page 404 /error404.htm;

	location = /error404.htm {
		root /srv/www/mutually4u.com/public_html;
	}


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list