Header 跳转无效

浏览:3943 发布日期:2017/02/16 分类:求助交流 关键字: nginx php-fpm
服务器环境:php-fpm, nginx 使用fastcgi处理php请求
nginx配置信息如下:
server {
listen 80;
server_name vip.xxx.com;
access_log /www/vip/log/host.access.log;
error_log /www/vip/log/error.log;
root /www/vip;
index index.php index.html index.htm;
location / {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1 last;
break;
}
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ {
expires 100d;
}
location ~ .*\.(js|css)?$ {
expires 30d;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
set $fastcgi_script_name2 $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+\.php)(/.+)$") {
set $fastcgi_script_name2 $1;
set $path_info $2;
}
fastcgi_param PATH_INFO $path_info;
fastcgi_param script_FILENAME $document_root$fastcgi_script_name2;
fastcgi_param script_NAME $fastcgi_script_name2;
}
}

现在一个普通的header跳转都无效了
header('Location:'.U("Home/Index/login"), false);
这个是怎么回事,apache是可以的
最佳答案
评论( 相关
后面还有条评论,点击查看>>