From 22685a412b6853cb00eec203a1bb1b75406d92c4 Mon Sep 17 00:00:00 2001 From: douboer Date: Wed, 11 Feb 2026 18:26:06 +0800 Subject: [PATCH] update at 2026-02-11 18:26:06 --- font2svg.mac.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/font2svg.mac.conf b/font2svg.mac.conf index 6da8861..83bede6 100644 --- a/font2svg.mac.conf +++ b/font2svg.mac.conf @@ -137,8 +137,9 @@ server { } # Web SPA 路由回退(刷新任意前端路径时返回 index.html) + # 不使用 $uri/,避免根路径 "/" 命中目录后触发 403。 location / { - try_files $uri $uri/ /frontend/dist/index.html; + try_files /frontend/dist$uri /frontend/dist/index.html; } # 禁止访问隐藏文件