rpaf

mod_rpaf is an apache module that translate proxy IP to real IP when apache web server is behind a proxy server.

https://github.com/gnif/mod_rpaf/

To install on Ubuntu, run

Config file available at

Apache