宝塔用户_rzojeq 发表于 2026-1-4 17:43:10

【已解答】停止前端项目,配置文件会自动添加location /导...

正常运行的一个项目中已经配置了
location / {
      try_files $uri $uri/ /index.html;# 优先找文件/目录,找不到就转发到index.html
    },但是如果停止项目,就会在自动添加上
location / {
      try_files $uri /index.html;
    },由于配置文件中本身就有location /,然后在添加新的站点的时候就会报错

阿珂 发表于 2026-1-5 11:20:11

测试没有复现,确保面板为最新版
页: [1]
查看完整版本: 【已解答】停止前端项目,配置文件会自动添加location /导...