LP#1684970 Translator compatible with mod_remoteip user/berick/lp1684970-translator-useragent-ip
authorBill Erickson <berickxx@gmail.com>
Mon, 27 Aug 2018 14:12:57 +0000 (10:12 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 27 Aug 2018 15:05:59 +0000 (11:05 -0400)
commit7e07d3d740212b0fbf20597087f0edf1197ea0f7
tree95d75eb232e63c7e0d8407fba6bd7efe57c1dbe2
parent6414c2527f6b6857d9f163bdba6f071b09f710a3
LP#1684970 Translator compatible with mod_remoteip

Teach the OSRF Translator to request the IP address of the user agent
(e.g. web browser) instead of the IP address of the up stream client,
which may be a proxy, using the Apache 2.4 request_rec->useragent_ip
value.

http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html

This make is possible for the translator to access the client IP with
Apache's mod_remoteip enabled and configured.

Includes sample config and install documentation.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
README
examples/apache2/opensrf.conf
src/gateway/osrf_http_translator.c