error_page on 0.5.35

Igor Sysoev is at rambler-co.ru
Thu Feb 21 12:05:35 MSK 2008


On Thu, Feb 21, 2008 at 12:51:31AM -0800, Jamie Quint wrote:

> I have this under http in my nginx.conf file:
>     error_page   404          /var/www/apps/myapp/templates/404.html;
>     error_page   502 503 504  /var/www/apps/myapp/templates/500.html;
> 
> I can access these at myapp.com/500.html and myapp.com/400.html but when I
> get a 502 gateway error instead of displaying the 500.html page I get the
> default nginx page. Any suggestions?

Do you have any error_page directives at server or location levels ?
They override http level error_page's.


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





More information about the nginx mailing list