摘要: nginx代理后想获取用户的真实IP, 1.在http 模块内增加map模块参数: map $http_x_forwarded_for $clientRealIp { "" $remote_addr; ~^(?P<firstAddr>[0-9\.]+),?.*$ $firstAddr; } 2.修改 阅读全文
posted @ 2021-12-28 12:25 paul_hch 阅读(1755) 评论(0) 推荐(0) 编辑