- 增加文档

This commit is contained in:
icret
2023-02-06 01:40:22 +08:00
parent ee0abc2bb6
commit fb61891a03
55 changed files with 1264 additions and 789 deletions

26
docs/安全配置.md Normal file
View 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