remote_ip always returns 127.0.0.1 (apache)

Hi All

I have my webrick server behind apache (all on the same server). The
problem I have now is that request.remote_ip always returns 127.0.0.1.
So it gets this IP from apache (I guess). How do I get the true client
IP address

Cheers
LuCa

request.env[ 'HTTP_X_FORWARDED_FOR' ]

yes, thnx a lot!!