Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Maxim Dounin mdounin at mdounin.ru
Tue Aug 30 16:20:38 UTC 2011


Hello!

On Tue, Aug 30, 2011 at 06:06:37PM +0200, Albuquerque Rui wrote:

> Hello,
> i've got a "funny" bug.
> 
> My installation is Nginx 1.0 and apache ( httpd ) behind.
> 
> Apache got's mod_rpaf activated and HostNameLookups On.
> 
> When testing a php script i find this problem :
> 
> _SERVER["REMOTE_HOST"]************<= my webserver hostname
> _SERVER["REMOTE_ADDR"]82.125.151.3<= my ip

I.e. client's ip is correct, but client's hostname still points to 
your webserver, right?  This looks like problem in mod_rpaf.

Maxim Dounin



More information about the nginx mailing list