The missing part was recursive_error_pages on; I now know there are posts about it, but I can see them only now, when I googled for recursive_error_pages :) Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219767,219768#msg-219768