Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Maxim Dounin mdounin at
Tue Aug 30 21:50:16 UTC 2011


On Tue, Aug 30, 2011 at 04:17:52PM -0400, Jim Ohlstein wrote:

> On 8/30/11 2:29 PM, Albuquerque Rui wrote:


> >>> Changes done, nothing changed.. Still the same problem...The fact is
> > that it seems mod_rpaf is working well because REMOTE_ADDR is good, but
> > REMOTE_HOST is not good :( :( :(
> I agree. It is not resolving the IP incorrectly. It is not an issue with
> nginx or with mod_rpaf.

As I wrote in my original reply...

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

... this is obviously a problem in mod_rpaf.  It fails to change 
ip *before* resolving happens in Apache.  (No idea if it's actually 
possible to implement this correctly though.)

Maxim Dounin

More information about the nginx mailing list