原因:discuz为了防止跨站脚本攻击,对请求的IP有限制
1.apaceh做代理服务器,nginx做WEB服务器
在apache配置中加入
ProxyPreserveHost on
2.nginx做代理服务器,apache做WEB服务器
在nginx配置文件中加入:
proxy_set_header Host $host;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_set_header HTTP_X_FORWARDED_HOST $proxy_add_x_forwarded_for;