Support Apache 2.4 client IP address lookups user/dbs/apache_2_4_support
authorDan Scott <dscott@laurentian.ca>
Thu, 17 Jan 2013 02:59:22 +0000 (21:59 -0500)
committerDan Scott <dscott@laurentian.ca>
Thu, 17 Jan 2013 02:59:22 +0000 (21:59 -0500)
commite69b1e6febd618d18413b764a10b6378e1f5000b
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>
configure.ac
src/gateway/Makefile.am
src/gateway/osrf_http_translator.c
src/gateway/osrf_json_gateway.c