./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module
make && make
location / {
set_real_ip_from 应用负载均衡所在子网IP段(用来做负载均衡的ip地址 比如 1.1.1.0/24);
real_ip_header X-Forwarded-For;
}
nginx -s stop
nginx