Support Apache 2.4 client IP address lookups user/berick/apache_2_4_support_signoff
authorDan Scott <dscott@laurentian.ca>
Thu, 17 Jan 2013 02:59:22 +0000 (21:59 -0500)
committerBill Erickson <berick@esilibrary.com>
Thu, 17 Jan 2013 17:56:17 +0000 (12:56 -0500)
commit15f591d472aa8a90ff6a553cdaf2960722059770
tree296dccb5bfda367d00fe141e722cd9891c1cecfd
parentc0630d2bcedb086ac4e8bef98cc37748fc0cce3a
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