不可以登录,又跳回到登陆页

解决您在不同平台环境下遇到的安装和升级问题
回复
youngerheart
帖子: 2
注册时间: 2015年 9月 26日 11:53

不可以登录,又跳回到登陆页

帖子 youngerheart »

centOS7,PHP 5.4.16,nginx/1.6.3
首页,文章页,登录页均正常
PATH_INFO应该是已经设置了,/test.php/sdf/sdf这样的链接可以访问
修改了/var/Typecho/Request.php,无效。
折腾了一晚上了,求解决。。。
youngerheart
帖子: 2
注册时间: 2015年 9月 26日 11:53

Re: 不可以登录,又跳回到登陆页

帖子 youngerheart »

解决了。。。nginx的配置问题,这里分享我的配置
server {

listen 80;

server_name xxx.cc;
root /var/xxx;
index index.html index.php;
location / {
try_files $uri $uri/ /index.html /index.php;
}
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php$1 last;
}

location ~ .*\.php(\/.*)*$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
回复