Re: Nginx detects my HN IP address [message #35421 is a reply to message #35400] |
Wed, 25 March 2009 06:44 |
|
silentninja
Messages: 37 Registered: September 2007
|
Member |
|
|
I'm still having this issue, it won't bother me to have the VE's ip being logged instead of mine, but.. I DO care that the HN IP's is being logged by an internal VE.. it's kinda insecure plus anoying because all my stats are broken now.
This is the information from accessing directly to the Apache 2.2 with a phpinfo() script
SERVER_NAME xxx.210.xxx.91
SERVER_ADDR xxx.210.xxx.91
SERVER_PORT 81
REMOTE_ADDR xxx.210.xxx.11
As you can see, it detects that the HN is visiting Apache, and not MY ip. Apache is running on port 81, that's ok. Nginx proxying, by the way, answers quite similar:
HTTP_HOST xxx.210.xxx.91
HTTP_X_REAL_IP xxx.210.xxx.11
HTTP_X_FORWARDED_FOR 190.210.25.11
SERVER_NAME xxx.210.xxx.91
SERVER_ADDR 127.0.0.1
SERVER_PORT 81
REMOTE_ADDR xxx.210.xxx.11
None of those IP is the one that should be seen, those are localhost, hn and ve ip's.
Any information that you want I can give it to you. Maybe something is missing on my configuration of the Apache to work properly on OpenVZ, or viceversa from the HN iptables/vz to work correctly; because i've tested on another webserver with Apache 1.3 and without the nginx redirection and it worked properly:
REMOTE_ADDR 190.48.xxx.15 (My remote IP number)
REMOTE_PORT 16494
SCRIPT_FILENAME /home/xxx/phpinfo.php
SERVER_ADDR 201.235.xxx.xxx (The VE current IP number)
(HN ip address is not shown)
[Updated on: Wed, 25 March 2009 06:56] Report message to a moderator
|
|
|