Commit edf171ed by zhangxingmin

push

parent 366f4fc0
......@@ -5,14 +5,15 @@ server {
root /usr/share/nginx/html;
index index.html;
# 主应用路由(history 模式)
location / {
try_files $uri $uri/ /index.html;
add_header Cache-Control "no-store, no-cache, must-revalidate"; # 禁用缓存
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
# 子应用 /cffp/ 路由
location /cffp/ {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /cffp/index.html;
try_files $uri $uri/ /cffp/index.html; # 移除 alias,直接使用 root
}
# 禁止访问 .env 文件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment