nginx禁止目录php执行权限,找到配置fastcgi.conf文件,一般在/usr/local/nginx/conf/下面,修改如下location ~* ^/(data|uploads|templets|special|html|erwe)/.*\.(php|php5)${deny all;}