You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
2.7.8
This commit is contained in:
@@ -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 = ()
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user