配置要求

  1. /install开头的目录禁止访问
  2. /var开头的目录禁止访问
  3. /usr/plugins开头的目录禁止访问
  4. /usr/themes/目录下的.php后缀文件禁止访问
  5. config.inc.php文件禁止访问
  6. install.php文件禁止访问

配置文件

location ~* ^/(install/|var/|usr/plugins/|usr/themes/.*\.(php)$|config.inc.php|install.php){
    deny all;
}
最后修改:2023 年 12 月 30 日
如果觉得我的文章对你有用,请随意赞赏