
nginx禁止执行php脚本
nginx禁止执行php脚本,代码如下
禁止制定目录执行php脚本
1
2
3
4
location ~ .*\.(php)?$
{
deny all;
}
1
2
3
4
5
location /upload/ {
location ~ .*\.(php)?$
{
deny all;
}
💘 相关文章
- Nginx – Unit nginx.service is masked的解决方法
- 一键自动安装Resilio Sync脚本 for centos
- nginx 反向代理后端并缓存数据的方法
- nginx 使用gzip和Brotli压缩对比测试
- 有意思,openlitespeed的PHP进程重启方式
- how to do config nginx allow's cloudflare ip's
- openLitespeed的教程
- nginx配置时HTTPS出现"nginx: [warn] "ssl_stapling" ignored"的解决方法
- PHP常用的危险函数,及屏蔽的方法
- 基于JAVA非常强大的Nginx配置文件生成面板