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/; } }