In a proxy/load balancer scenario, our expectation that client_ip contains an IP other than that of the proxy or load balanacer seems to be contrary to the Apache 2.4 API.
* When you require the IP address of the user agent, which might be connected directly to the server, or might optionally be separated from the server by a transparent load balancer or proxy, use request_rec->useragent_ip and request_rec->useragent_addr.
* When you require the IP address of the client that is connected directly to the server, which might be the useragent or might be the load balancer or proxy itself, use conn_rec->client_ip and conn_rec->client_addr.
In a proxy/load balancer scenario, our expectation that client_ip contains an IP other than that of the proxy or load balanacer seems to be contrary to the Apache 2.4 API.
From http:// httpd.apache. org/docs/ 2.4/developer/ new_api_ 2_4.html
* When you require the IP address of the user agent, which might be connected directly to the server, or might optionally be separated from the server by a transparent load balancer or proxy, use request_ rec->useragent_ ip and request_ rec->useragent_ addr.
* When you require the IP address of the client that is connected directly to the server, which might be the useragent or might be the load balancer or proxy itself, use conn_rec->client_ip and conn_rec- >client_ addr.