LP#1684970 Translator compatible with mod_remoteip
authorBill Erickson <berickxx@gmail.com>
Mon, 27 Aug 2018 14:12:57 +0000 (10:12 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 5 Nov 2018 16:44:22 +0000 (11:44 -0500)
commit7866a18c7455f8243e9f1076ebdff230f5905357
treeb69736c8ff3206d46d2f690a0b11a6329f828d17
parent7d144fbdb50b3d91c8fd9429f35838b37f3cd83c
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
README
examples/apache2/opensrf.conf
src/gateway/osrf_http_translator.c