解决ThinkPHP在nginx+php-fpm模式中无法使用pathinfo

    location / {
            try_files $uri $uri/ /index.php$uri;
    }
    location ~ .+\.php($|/) {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_split_path_info ^(.+\.php)(/.*)$;
            fastcgi_param  PATH_INFO $fastcgi_path_info;
            include        fastcgi.conf;
            fastcgi_param  SERVER_NAME  $host; 
    }
浙ICP备16045237号-1