﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1588	about realip module	cjhust@…		"http {
    real_ip_header X-Real-IP;
    set_real_ip_from 127.0.0.1;

    server {
       listen 8000;
       real_ip_header X-Forwarded-For;

       location / {
            ....
       }
    }
}


local test:
#curl http://127.0.0.1:8000/ 
$remote_addr = ""127.0.0.1""

#curl http://127.0.0.1:8000/  -H ""X-Real-IP: 1.1.1.1""
$remote_addr = ""1.1.1.1""

#curl http://127.0.0.1:8000/  -H ""X-Forwarder-For: 2.2.2.2""
$remote_addr = ""2.2.2.2""

#curl http://127.0.0.1:8000/  -H ""X-Forwarder-For: 2.2.2.2"" -H ""X-Real-IP: 1.1.1.1""
$remote_addr = ""2.2.2.2""


why not location level tack effect?
why X-real-IP tack effect?








"	defect	closed	minor		other	1.13.x	worksforme			3.10.0	1.13.6
