Divide the MSB source codes into two repos
[msb/apigateway.git] / openresty-ext / src / assembly / resources / openresty / nginx / msb-enabled / location-ext / defaultpage.conf
1 location @defaultpage {
2         content_by_lua_block{
3                 local error_page_head = '<html><head><title>502 Bad Gateway</title></head><body bgcolor="white"><center><h1>502 Bad Gateway</h1></center><center>error message:'
4                 local error_page_foot = '</center><hr><center>nginx</center></body></html>'
5                 ngx.status = ngx.HTTP_BAD_GATEWAY
6                 ngx.print(error_page_head.."default homepage undefined"..error_page_foot)
7                 return ngx.exit(ngx.status)
8         }
9 }