This commit is contained in:
icret
2023-03-11 00:36:37 +08:00
parent 700e001de1
commit 31b39e1070
6 changed files with 19 additions and 31 deletions

View File

@@ -11,8 +11,7 @@ Deny from all
```Nginx
# "i|public"是你要禁止的目录 放到listen段落之后才生效
location ~* ^/(i|public)/.*\.(php|php5)$
{
location ~* ^/(config|docs|i|public)/.*\.(php|php5)$ {
deny all;
}
```
@@ -20,7 +19,7 @@ Deny from all
- Lighthttpd环境禁止多个目录运行`PHP`程序:
```Lighthttpd
$HTTP["url"] =~ "^/(i|public)/" {
$HTTP["url"] =~ "^/(config|docs|i|public)/" {
fastcgi.server = ()
}
```