请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需一步,快速开始

Ecshop升级了Nginx 服务器密码正确就是无法登录问题解决

xkfla 2014-8-10 03:44:34 显示全部楼层 阅读模式
近很多ecshop客户升级了 Nginx 服务器,结果发现 ECShop 后台管理员无法登录了
用户名、密码肯定是正确的,登录没有任何错误显示,只是不断回到登录界面让重新登录
这个问题的根源在于 Nginx 的一些缺省值,修改 ECShop 的代码如下:
[color=#ff8000 !important]//  include/cls_ecshop.php  文件  153 行左右

[color=#006fe0 !important]    [color=#800080 !important]function[color=#006fe0 !important] [color=#004ed0 !important]http()
[color=#006fe0 !important]    {
[color=#006fe0 !important]        [color=#800080 !important]return[color=#006fe0 !important] ([color=#800080 !important]isset([color=#002d7a !important]$_SERVER[[color=#008000 !important]'HTTPS'])[color=#006fe0 !important] [color=#006fe0 !important]&&[color=#006fe0 !important] ([color=#004ed0 !important]strtolower([color=#002d7a !important]$_SERVER[[color=#008000 !important]'HTTPS'])[color=#006fe0 !important] [color=#006fe0 !important]!=[color=#006fe0 !important] [color=#008000 !important]'off'))[color=#006fe0 !important] ?[color=#006fe0 !important] [color=#008000 !important]'https://'[color=#006fe0 !important] [color=#006fe0 !important]:[color=#006fe0 !important] [color=#008000 !important]'http://';
[color=#006fe0 !important]    }

[color=#ff8000 !important]// 修改为下面,注意  != 'off'  改成 == 'on'

[color=#006fe0 !important]    [color=#800080 !important]function[color=#006fe0 !important] [color=#004ed0 !important]http()
[color=#006fe0 !important]    {
[color=#006fe0 !important]        [color=#800080 !important]return[color=#006fe0 !important] ([color=#800080 !important]isset([color=#002d7a !important]$_SERVER[[color=#008000 !important]'HTTPS'])[color=#006fe0 !important] [color=#006fe0 !important]&&[color=#006fe0 !important] ([color=#004ed0 !important]strtolower([color=#002d7a !important]$_SERVER[[color=#008000 !important]'HTTPS'])[color=#006fe0 !important] [color=#006fe0 !important]==[color=#006fe0 !important] [color=#008000 !important]'on'))[color=#006fe0 !important] ?[color=#006fe0 !important] [color=#008000 !important]'https://'[color=#006fe0 !important] [color=#006fe0 !important]:[color=#006fe0 !important] [color=#008000 !important]'http://';
[color=#006fe0 !important]    }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

    热门帖子
  • 精华
  • 新帖
快速回复 返回顶部 返回列表