From 1124485f6a9d3d26511488843f880d64fdba5388 Mon Sep 17 00:00:00 2001 From: wonder Date: Thu, 27 Aug 2026 18:57:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=E9=87=8D=E5=AE=9A=E5=90=91=E4=B8=A2=E5=A4=B1=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 absolute_redirect off 配置,使 nginx 使用相对路径重定向 - 避免容器内端口 80 与外部端口 8080 不一致导致重定向失败 --- nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index cc50542..14ce080 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,6 +1,7 @@ server { listen 80; server_name localhost; + absolute_redirect off; root /usr/share/nginx/html; index index.html; @@ -38,7 +39,7 @@ server { } # 根路径重定向到主简历 - location / { + location = / { return 301 /resume/; } }