location ~ .+\.php($|/) {
    fastcgi_pass    unix:/run/php/php7.0-fpm.sock;
    fastcgi_split_path_info ^((?U).+.php)(/?.+)$;
    fastcgi_param PATH_INFO $fastcgi_path_info;
    fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
    fastcgi_param    SCRIPT_FILENAME    $root$fastcgi_script_name;
    include        fastcgi_params;
}

via: http://www.thinkphp.cn/topic/40391.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注