
linux中怎么用命令禁止上传目录执行php脚本?
可以通过修改nginx.conf配置文件实现。 方法如下: 禁止单目录: location ~* ^/attachments/.*.(php|php5)$ { deny all; } 禁止多目录: location ~* ^/(attach...
可以通过修改nginx.conf配置文件实现。 方法如下: 禁止单目录: location ~* ^/attachments/.*.(php|php5)$ { deny all; } 禁止多目录: location ~* ^/(attach...