nginx 开启phpinfo

在nginx配置文件中加

location / {
  //如果是资源文件,则不走phpinfo模式
  if (!-e $request_filename){
    ewrite ^/(.*)$ /index.php?s=$1 last;
  }
}

posted @ 2018-12-13 13:40  冷空气的清晰  阅读(1332)  评论(0编辑  收藏  举报