nginx禁止pbootcms目录php执行权限

    nginx禁止pbootcms目录php执行权限代码如下:

    location ~* ^/(static|templet|doc)/.*\.(php|php5)$

    {

    deny all;

    }

    如果有其他非pb自带文件,可以参考如下:

    location ~* ^/(static|templet|doc|uploads|style|css|images)/.*\.(php|php5)$

    {

    deny all;

    }

    其中uploads|style|css|images是自定义的文件夹!