Maison  >  Questions et réponses  >  le corps du texte

centos - nginx中怎样指定多个目录不解析php

location /data/attachment/ {
    location ~ .*\.(php)?${
        deny all;
    }
}

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

我想大声告诉你我想大声告诉你2733 Il y a quelques jours671

répondre à tous(1)je répondrai

  • 过去多啦不再A梦

    过去多啦不再A梦2017-04-25 09:03:11

    location ~ (/data/attachment/|/xxoo/|/ooxx/oxox) {
        location ~ .*\.(php)?${
            deny all;
        }
    }
    

    C'est régulier

    répondre
    0
  • Annulerrépondre