try_files和子位置

时间:2016-09-22 22:40:35

标签: file nginx url-rewriting try-catch

如果try_files的最后一个选项包含与子位置匹配的uri,那么该位置会被调用吗?

location /some/path {
  alias /a/mount/point;
  try_files $uri /some/path/index.php$is_args$args;

  location ~ \.php {
    fastcgi_pass  phpfpm;
    fastcgi_index index.php;
    include       fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $request_filename;
  }
}

在上面的例子中,try_files /some/path/index.php命中〜.php子位置?

0 个答案:

没有答案