Nginx安全设置上传目录无php执行权限
编辑Nginx配置文件在fastpass前添加以下内容
location ~* ^/www.hack1990.com/.*\.(php|php5)$ #限制/data/attachment/目录
{
deny all; #拒绝执行php程序
}
重启nginx
service nginx restart
编辑Nginx配置文件在fastpass前添加以下内容
location ~* ^/www.hack1990.com/.*\.(php|php5)$ #限制/data/attachment/目录
{
deny all; #拒绝执行php程序
}
重启nginx
service nginx restart