Bug: custom error_page doesn't work for HTTP 413 (content too large)

estebistec nginx-forum at nginx.us
Fri Jun 18 20:48:24 MSD 2010

Has the patch been worked into a release? We are still experiencing this
bug on version 0.7.65.

Also, we noticed an interesting wrinkle. If we add a URI that explicitly
returns 413, we can get our error page by hitting that URI.

error_page 413 /413.html;

location /413.html {
    alias /etc/nginx/entity_body_too_large.html;

location /test413 {
    return 413;

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2620,99990#msg-99990

More information about the nginx mailing list