Nginx开启CDN获取用户真实IP

韦林 35 阅读

在Nginx配置规则的http段加上

set_real_ip_from 0.0.0.0/0;
real_ip_header *-Forwarded-For;

全部回复

暂无回复