
在java中怎么得到通过nginx中转前的IP-CSDN论坛
1个回答
展开全部
配置文件中加入
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
配置文件中加入
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
类别
我们会通过消息、邮箱等方式尽快将举报结果通知您。
说明
0/200