]> 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:50:50 +0000 (13:50 -0500)
commite6462241444ab06944ef06a08a7599cb0e51e26f
treeffbf402d292808db6eaff8b08b0145c1f514fa85
parent8c50b55dc7e7c706976a40a2a3926073fb2f8ff2
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