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_sc
if ($fastcgi_sc
set $fastcgi_sc
set $path_info $2;
}
fastcgi_param PATH_INFO $path_info;
fastcgi_param sc
fastcgi_param sc
}
}
现在一个普通的header跳转都无效了
header('Location:'.U("Home/Index/login"), false);
这个是怎么回事,apache是可以的
最佳答案
