All files from this thread

File Name File Size   Posted by Date  
mod_rpaf.png 8.5 KB open | download Jim Ohlstein 08/30/2011 Read message
August 30, 2011 01:40PM
On 8/30/11 12:47 PM, Albuquerque Rui wrote:
> proxy_set_header Host $host;
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For
> $proxy_add_x_forwarded_for;
>
>
>
> And on apache :
>
> LoadModule rpaf_module modules/mod_rpaf-2.0.so http://mod_rpaf-2.0.so
> RPAFenable On
> RPAFsethostname On
> RPAFproxy_ips 127.0.0.1
> RPAFheader X-Forwarded-For


Please do not top post. It makes following a thread much more difficult.

We use the following in Apache:

RPAFenable On
RPAFsethostname On
RPAFproxy_ips 127.0.0.1

First thing I would suggest is running a phpinfo script and seeing what
the value of _SERVER["REMOTE_ADDR"] is.

Then comment out the line that begins with "RPAF header", restart Apache
and run again and see if the value changes.


>
>
>
>
>
>
> 2011/8/30 Jim Ohlstein <jim@ohlste.in <mailto:jim@ohlste.in>>
>
> On 8/30/11 12:23 PM, Albuquerque Rui wrote:
> > Yes that's right. It's really strange that i'm the only one having
> this
> > problem with mod_rpaf 0.6 :( :( :(
> >
> >
> > 2011/8/30 Maxim Dounin <mdounin@mdounin.ru
> <mailto:mdounin@mdounin.ru> <mailto:mdounin@mdounin.ru
> <mailto:mdounin@mdounin.ru>>>
> >
> > 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.
>
> It looks like it's reporting *his* IP, not that of the client and Apache
> is doing a look up on that IP?
>
> How are you passing the remote IP from nginx to Apache?
>
>
> >
> > Maxim Dounin
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org <mailto:nginx@nginx.org>
> <mailto:nginx@nginx.org <mailto:nginx@nginx.org>>
> > http://mailman.nginx.org/mailman/listinfo/nginx
> >
> >
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org <mailto:nginx@nginx.org>
> > http://mailman.nginx.org/mailman/listinfo/nginx
>
>
> --
> Jim Ohlstein
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org <mailto:nginx@nginx.org>
> http://mailman.nginx.org/mailman/listinfo/nginx
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


--
Jim Ohlstein

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

Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 30, 2011 12:08PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Maxim Dounin August 30, 2011 12:22PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 30, 2011 12:24PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Igor Sysoev August 30, 2011 12:36PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 30, 2011 12:46PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Jim Ohlstein August 30, 2011 12:46PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 30, 2011 12:48PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Jim Ohlstein August 30, 2011 01:40PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 30, 2011 02:30PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Jim Ohlstein August 30, 2011 04:20PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Maxim Dounin August 30, 2011 05:52PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug Attachments

Jim Ohlstein August 30, 2011 07:16PM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 31, 2011 02:36AM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 31, 2011 03:04AM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Gena Makhomed August 31, 2011 07:00AM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Albuquerque Rui August 31, 2011 08:00AM

Re: Nginx + apache : REMOTE_ADDR and REMOTE_HOST bug

Gena Makhomed August 31, 2011 08:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready