location @defaultpage {
content_by_lua_block{
local error_page_head = '
502 Bad Gateway502 Bad Gateway
error message:'
local error_page_foot = '
nginx'
ngx.status = ngx.HTTP_BAD_GATEWAY
ngx.print(error_page_head.."default homepage undefined"..error_page_foot)
return ngx.exit(ngx.status)
}
}