centos - nginx中怎样指定多个目录不解析php
我想大声告诉你
我想大声告诉你 2017-04-25 09:01:11
0
1
666
location /data/attachment/ {
    location ~ .*\.(php)?${
        deny all;
    }
}

搜了半天给的例子都是这样的
每个目录都复制一遍的就太那啥了吧...

我想大声告诉你
我想大声告诉你

reply all(1)
过去多啦不再A梦
location ~ (/data/attachment/|/xxoo/|/ooxx/oxox) {
    location ~ .*\.(php)?${
        deny all;
    }
}

It’s regular

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!