nginx禁止目录php执行权限

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

posted on 2015-07-19 18:03  今天又进步了  阅读(2076)  评论(0编辑  收藏  举报

导航