You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
- 增加文档
This commit is contained in:
26
docs/安全配置.md
Normal file
26
docs/安全配置.md
Normal file
@@ -0,0 +1,26 @@
|
||||
- Apache环境在上传目录添加配置文件`.htaccess` 使上传目录不可运行PHP程序(默认已经存在)
|
||||
|
||||
```Apache
|
||||
<FilesMatch "\.(?i:php|php3|php4|php5)">
|
||||
Order allow,deny
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
```
|
||||
|
||||
- Nginx环境禁止多个目录运行`PHP`程序:
|
||||
|
||||
```Nginx
|
||||
# "i|public"是你要禁止的目录 放到listen段落之后才生效
|
||||
location ~* ^/(i|public)/.*\.(php|php5)$
|
||||
{
|
||||
deny all;
|
||||
}
|
||||
```
|
||||
|
||||
- Lighthttpd环境禁止多个目录运行`PHP`程序:
|
||||
|
||||
```Lighthttpd
|
||||
$HTTP["url"] =~ "^/(i|public)/" {
|
||||
fastcgi.server = ()
|
||||
}
|
||||
```w
|
||||
Reference in New Issue
Block a user