Real IP not working?

pk899 nginx-forum at
Sun Dec 4 15:12:26 UTC 2011

Hi. Nginx 1.0.8 proxying to Apache 2. My version of PHP is 5.3.8, but
that's irrelevant I suppose. 

Nginx is with Real IP module. I have the following in my conf file: 

set_real_ip_from   [ server ip..];
real_ip_header     X-Real-IP;

Apache is also with module RPAF. And there's this bit in httpd.conf: 

LoadModule rpaf_module /usr/lib64/httpd/modules/
<IfModule mod_rpaf.c>
RPAFenable On
RPAFproxy_ips  [ server IPs...]
RPAFsethostname On
RPAFheader X-Real-IP

Yet, in Apache log, the client IPs are not shown. All the IPs in the log
are my own server's IP! 

How can I make sure that Apache shows the end user's IP?

Posted at Nginx Forum:,219581,219581#msg-219581

More information about the nginx mailing list