Set real ip not working

snir nginx-forum at forum.nginx.org
Wed May 9 18:19:23 UTC 2018


Hello 
I want to get the real ip of the client but I'm all ways getting the ip of
the ngnix server.
I trayed using set_real_ip:
http {
    upstream myapp1 {
        server 177.17.777.13:8080;
		
    }

    server {
        listen 80;

		
		real_ip_recursive on;
		
		set_real_ip_from 177.17.777.13;		
		real_ip_header X-Forwarded-For;
		
        location / {
            proxy_pass http://myapp1;
			
        }
    }
	
	
	
}

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,279736,279736#msg-279736



More information about the nginx mailing list