记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

忙啊,只能把问题记录打????上传了。。。

记事狗端口映射访问出错解决http://IP:port/index.php?__redirect__=1&

1问题发现

在内网搭建的事狗服端口映射到外网后,发现网站被重定向了:

http://IP:port/index.php?__redirect__=1&

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

 

2问题思考

一开始以nginx配置问题,但检查jishigou的包一开始前端面的index.php一直重定向至include/jishigou.php

为对php了解少,所以了研方面的帮助

 

3问题发

知道事狗的同事要在网站后台管理里面配置,但在入后台使用:http://ip:port/admin.php时,提示错误

无法访问后台配置,所以重新搭建一套测试环境。。。其相当于重装找错误

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

4、搭建测试环

4.1入官网

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

4.2、找到源

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

4.3、源

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

4.4、在服器下解

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

4.5、代理出去即可

注:dataimagesinstallsetting这四个目录要求有读写权限,给它们赋值777就行了

 

5入后台管理

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

6看更改访问地址配置

可以看到:已经进入了http://ip:port/admin.php

 

在核心置里找到网站的url

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

可以看提示:修改settingsettings.php文件site_url变量值

好的,在原来的服器上修改:

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

7、重启服

重启:phpnginx

后,访问正常

记事狗端口映射访问出错解决(http://IP:port/index.php?__redirect__=1&)

8、替后台文件

后台依旧报错,把新下好的admin.php文件替jishigou/下的admin.php

重启:phpnginx

后,入后台管理正常

9总结

admin.php配置文件异常出,原因未知;

后台配置url接口即可正常使用。