]> git.evergreen-ils.org Git - OpenSRF.git/commit
Support Apache 2.4 client IP address lookups
authorDan Scott <dscott@laurentian.ca>
Thu, 17 Jan 2013 02:59:22 +0000 (21:59 -0500)
committerDan Scott <dscott@laurentian.ca>
Sat, 19 Jan 2013 18:45:38 +0000 (13:45 -0500)
commit0c40bc6c40ff55b1ddf8bfe9b5e6ebaa87be5113
tree23d3f2cde06ae8025080c34a68a7a05b4ddb3d95
parentd390d1ae315bd9c9326c9ef76ebf74f57ddaa573
Support Apache 2.4 client IP address lookups

The Apache 2.4 API replaces the conn_rec->remote_ip member with
conn_rec->client_ip or conn_rec->useragent_ip (per
http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html). client_ip
seems to be the best choice for us, to avoid everything being logged
from the load balancer or proxy instead of the client's address.

This code detects the version of Apache and uses client_ip if it is 2.4
or greater.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Bill Erickson <berick@esilibrary.com>
configure.ac
src/gateway/Makefile.am
src/gateway/osrf_http_translator.c
src/gateway/osrf_json_gateway.c