location~.php($|/){
#省略配置
set$script$uri;
set$path_info"/";
if($uri~"^(.+.php)(/.+)")
{
set$script$1;
set$path_info$2;
}
fastcgi_paramPATH_INFO$path_info;
fastcgi_paramSCRIPT_FILENAME$document_root/$script;
fastcgi_paramSCRIPT_NAME$script;