update at 2026-02-11 18:26:06
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
# 禁止访问隐藏文件
|
||||
|
||||
Reference in New Issue
Block a user