diff --git a/conf/nginx.conf b/conf/nginx.conf index 681f185..17689ce 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -25,10 +25,12 @@ http { access_log off; } + #API接口文件 location /api { content_by_lua_file '/home/frankly/work/AuthPlatform/src/api/api.lua'; } + #测试相关插件接口 location /testTree { content_by_lua_file '/home/frankly/work/AuthPlatform/src/test/testRadixtree.lua'; } @@ -141,5 +143,11 @@ http { rewrite ^/_proxy/(.*)$ /$1 break; ##proxy_pass https://resource-provider; } + + # 错误页处理 + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root html; + } } } \ No newline at end of file