Problem solved. It's the name of real_ip_header that was wrong in my CISCO system. Thanks. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,223259,223283#msg-223283