error_page 404 500 502 503 504 /500.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
location = /500.html {
root /home/mlzboy/my/idea2/search/;
}
reference:http://expressica.com/2008/03/22/nginx-set-up-error-pages/