摘要: nginx取 $remote_addr 当做真实ip,而事实上,$http_X_Forwarded_For 才是用户真实ip,$remote_addr只是代理上一层的地址 解决方案: 在 http 模块 加 set_real_ip_from 172.17.10.125; #上一层代理IP地址 rea 阅读全文
posted @ 2019-04-28 17:16 chenjianwen 阅读(7073) 评论(0) 推荐(1) 编辑