From 8b5eedb3080b35cbe858495f83ff7fc1c1e50dd3 Mon Sep 17 00:00:00 2001 From: 2910410219 <2910410219@qq.com> Date: Fri, 22 May 2026 09:33:40 +0800 Subject: [PATCH] =?UTF-8?q?nginx=E9=83=A8=E7=BD=B2=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ngnix.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ngnix.conf b/ngnix.conf index 4e45c70..65a8762 100644 --- a/ngnix.conf +++ b/ngnix.conf @@ -10,6 +10,11 @@ server { try_files $uri $uri/ =404; } + # 根路径固定进入前端,避免落到后端登录页 + location = / { + return 302 /sys/; + } + index index.html; # SSL 配置