Welcome! Log In Create A New Profile

Advanced

Re: all visitor have same IP (my server IP)

December 16, 2014 12:54PM
On 2014-12-16, 9:32 AM, umarizal wrote:
> Anoop Alias Wrote:
> -------------------------------------------------------
>> Are you seeing the same IP in apache?.
>>
>> If yes then you need the following module in apache
>> https://github.com/gnif/mod_rpaf or
>> http://httpd.apache.org/docs/trunk/mod/mod_remoteip.html
>>
>> --
>> *Anoop P Alias*
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> Sorry, but I donĀ“t understand your question. How do I see it?
>
> Thank you very much! :D
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,225160,255538#msg-255538
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
There are multiple areas/ways of getting the non-proxied ip address.
One of Anoop recommendation was that you utilize the remoteip method.
This isn't a but, its simply the fact that you are proxying the
connection so the connections will in fact look to come from the address
of your nginx server.

What the remoteip (realip) allows nginx to capture the src-Ip address of
the connection and then pass it to apache, then you configure apache to
look for say "remote_addr" and utilize the value for whatever you are doing.

this isn't perfect but it works for my testing, allows me to see how the
data is being passed.

<?php

echo "Remote addr: " . $_SERVER['REMOTE_ADDR']."<br/>";

echo "X Forward: " . $_SERVER['HTTP_X_FORWARDED_FOR']."<br/>";

echo "X Forward single: " . $_SERVER['HTTP_X_FORWARDED']."<br/>";

echo "HTTP_X_CLUSTER_CLIENT_IP: " .
$_SERVER['HTTP_X_CLUSTER_CLIENT_IP']."<br/>";

echo "HTTP_FORWARDED_FOR " . $_SERVER['HTTP_FORWARDED_FOR']."<br/>";

echo "HTTP_FORWARDED " . $_SERVER['HTTP_FORWARDED']."<br/>";

echo "Clien IP: " . $_SERVER['HTTP_CLIENT_IP']."<br/>";

?>

hope this helps


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

all visitor have same IP (my server IP)

activa April 11, 2012 12:50AM

Re: all visitor have same IP (my server IP)

Ruslan Ermilov April 11, 2012 01:26AM

Re: all visitor have same IP (my server IP)

activa April 11, 2012 11:22PM

Re: all visitor have same IP (my server IP)

umarizal December 16, 2014 09:12AM

Re: all visitor have same IP (my server IP)

Anoop Alias December 16, 2014 09:38AM

Re: all visitor have same IP (my server IP)

umarizal December 16, 2014 12:32PM

Re: all visitor have same IP (my server IP)

unclepieman December 16, 2014 12:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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