commit | a2ee30bc73d757f3771cf43399119a31062d0058 | [log] [tgz] |
---|---|---|
author | San3yuan <1071987081@qq.com> | Thu Jun 05 21:20:17 2025 +0800 |
committer | San3yuan <1071987081@qq.com> | Thu Jun 05 21:20:17 2025 +0800 |
tree | f6cd7bcb5e305b99504a613d48a98e6841492470 | |
parent | a408007d407be269257a53a5432e0ba38b70749d [diff] [blame] |
帖子分类 Change-Id: I17bafbfe3c1c8fd26c1e12499cb3c17cd1738e23
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..f15b3e1 --- /dev/null +++ b/nginx.conf
@@ -0,0 +1,15 @@ +server { + listen 80; + server_name localhost; + + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; # 关键:支持前端路由 + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } +} \ No newline at end of file