Today I updated Debian to Jessie on my server and found a problem: the mod_rpaf module did not display the correct client ip address, instead ip 127.0.0.1 was displayed when proxying requests from nginx to apache.
The problem is solved very simply: deactivate / delete mod_rpaf and activate mod_remoteip with the command:
# a2enmod mod_remoteip
Restart apache . Now open the config file with virtual hosts and for each site we write the following:
<IfModule remoteip_module> RemoteIPHeader X-Forwarded-For RemoteIPTrustedProxy 127.0.0.1 </ IfModule>
Restart apache again.