From 938da2125026d5b6b95da74689d723e9b46b5211 Mon Sep 17 00:00:00 2001 From: wanglei <34475144@qq.com> Date: Tue, 14 Oct 2025 15:39:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/nginx.conf | 8 ++++++++ 1 file changed, 8 insertions(+) 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