location ~ /(template)/.*\.html {
            deny all;
}

设置一个伪静态

禁止访问template目录下的html文件



如果您的问题还未解决可以联系站长付费协助。 加入我们 pbootcms禁止访问模版目录文件的设置nginx下