lnmp1.0+ThinkPHP3.2.2 URL_MODEL设置PATHINFO模式无效!

浏览:1716 发布日期:2014/07/25 分类:求助交流 关键字: ThinkPHP3.2.2 URL_MODEL
运行环境:lnmp1.0
框架版本:ThinkPHP3.2.2
nginx.conf设置:
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
set $path_info "";
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param script_FILENAME $document_root$real_script_name;
fastcgi_param script_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;

}

location /{
if ( !-e $request_filename ){
rewrite ^/(.*)$ /index.php/$1;
break;
}
}
Liunx环境下ThinkPHP3.2.2 设置URL_MODEL为PATHINFO模式不起作用,救高手指点!!

备注:
http://serverName/index.php 正常
http://serverName/index.php/Home/Index/index 报404 Not Foundnginx/1.0.15
最佳答案
评论( 相关
后面还有条评论,点击查看>>