fix(docker): 修复默认配置中的 try_files 指令- 将 /index.html 改为 //index.html,以确保正确处理根路径

- 删除多余的空行,优化配置文件结构
This commit is contained in:
du.meimei
2025-05-27 17:19:46 +08:00
parent 56153fcf9c
commit 9d799adaa6

View File

@@ -5,7 +5,7 @@ server {
location / {
root /var/www/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
try_files $uri $uri/ //index.html;
}
# 反向代理配置:将 /yiligpt 映射到外部链接
@@ -26,4 +26,4 @@ server {
location = /50x.html {
root /var/www/html;
}
}
}