Reverse proxy

Dear, I have drupal 7.51 under nginx frontend and apache backend. I think my configuration is ok. Now if I run: <?php if (!empty($_SERVER[“HTTP_CLIENT_IP”])) { //check for ip from share internet $ip = $_SERVER[“HTTP_CLIENT_IP”]; } else { $ip = $_SERVER[“REMOTE_ADDR”]; } echo $ip; ?> I[…]