Welcome! Log In Create A New Profile

Advanced

Real IP not working?

December 04, 2011 10:12AM
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:


[code]
set_real_ip_from 192.168.1.0/24;
set_real_ip_from 192.168.2.1;
set_real_ip_from 127.0.0.1;
set_real_ip_from [..my server ip..];
real_ip_header X-Real-IP;
[/code]


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


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


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?
Subject Author Posted

Real IP not working?

pk899 December 04, 2011 10:12AM

Re: Real IP not working?

Alexander Kolesen December 04, 2011 01:38PM

Re: Real IP not working?

pk899 December 04, 2011 02:16PM

Re: Real IP not working?

pk899 December 04, 2011 02:19PM

Re: Real IP not working?

BigdinoWebmaster December 04, 2011 03:10PM

Re: Real IP not working?

Alexander Kolesen December 05, 2011 01:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 279
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready