
nginx禁止执行php脚本
nginx禁止执行php脚本,代码如下
禁止制定目录执行php脚本
1
2
3
4
location ~ .*\.(php)?$
{
deny all;
}
1
2
3
4
5
location /upload/ {
location ~ .*\.(php)?$
{
deny all;
}
💘 相关文章
- linux 查找可疑脚本的记录
- how to do config nginx allow's cloudflare ip's
- nginx配置时HTTPS出现"nginx: [warn] "ssl_stapling" ignored"的解决方法
- A cross-platform integrated development environment -phpstudy (small leather panel)
- Mac PHP mysql 一键工具包
- 两种自动添加 ip 白名单到cloudflare的脚本
- digitalocean開源nginx可視化配置工具,非常適合新手小白,支持漢化
- directadmin的安装折腾及更改directadmin为nginx记录
- 网页预加载脚本,飞一般的速度
- 一款可视化适合小白的cdn构建系统