<br><br><div class="gmail_quote">2011/8/30 Jim Ohlstein <span dir="ltr"><<a href="mailto:jim@ohlste.in">jim@ohlste.in</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 8/30/11 12:47 PM, Albuquerque Rui wrote:<br>
> proxy_set_header Host $host;<br>
> proxy_set_header X-Real-IP $remote_addr;<br>
> proxy_set_header X-Forwarded-For<br>
> $proxy_add_x_forwarded_for;<br>
><br>
><br>
><br>
> And on apache :<br>
><br>
</div>> LoadModule rpaf_module modules/<a href="http://mod_rpaf-2.0.so" target="_blank">mod_rpaf-2.0.so</a> <<a href="http://mod_rpaf-2.0.so" target="_blank">http://mod_rpaf-2.0.so</a>><br>
<div class="im">> RPAFenable On<br>
> RPAFsethostname On<br>
> RPAFproxy_ips 127.0.0.1<br>
> RPAFheader X-Forwarded-For<br>
<br>
<br>
</div>Please do not top post. It makes following a thread much more difficult.<br>
<br>
We use the following in Apache:<br>
<div class="im"><br>
RPAFenable On<br>
RPAFsethostname On<br>
RPAFproxy_ips 127.0.0.1<br>
<br>
</div>First thing I would suggest is running a phpinfo script and seeing what<br>
the value of _SERVER["REMOTE_ADDR"] is.<br></blockquote><div> </div><div>>> 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 :( :( :(<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Then comment out the line that begins with "RPAF header", restart Apache<br>
and run again and see if the value changes.<br>
<br>
<br>
><br>
><br>
><br>
><br>
><br>
><br>
> 2011/8/30 Jim Ohlstein <<a href="mailto:jim@ohlste.in">jim@ohlste.in</a> <mailto:<a href="mailto:jim@ohlste.in">jim@ohlste.in</a>>><br>
<div class="im">><br>
> On 8/30/11 12:23 PM, Albuquerque Rui wrote:<br>
> > Yes that's right. It's really strange that i'm the only one having<br>
> this<br>
> > problem with mod_rpaf 0.6 :( :( :(<br>
> ><br>
> ><br>
> > 2011/8/30 Maxim Dounin <<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a><br>
</div>> <mailto:<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>> <mailto:<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a><br>
<div class="im">> <mailto:<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>>>><br>
> ><br>
> > Hello!<br>
> ><br>
> > On Tue, Aug 30, 2011 at 06:06:37PM +0200, Albuquerque Rui wrote:<br>
> ><br>
> > > Hello,<br>
> > > i've got a "funny" bug.<br>
> > ><br>
> > > My installation is Nginx 1.0 and apache ( httpd ) behind.<br>
> > ><br>
> > > Apache got's mod_rpaf activated and HostNameLookups On.<br>
> > ><br>
> > > When testing a php script i find this problem :<br>
> > ><br>
> > > _SERVER["REMOTE_HOST"]************<= my webserver hostname<br>
> > > _SERVER["REMOTE_ADDR"]82.125.151.3<= my ip<br>
> ><br>
> > I.e. client's ip is correct, but client's hostname still points to<br>
> > your webserver, right? This looks like problem in mod_rpaf.<br>
><br>
> It looks like it's reporting *his* IP, not that of the client and Apache<br>
> is doing a look up on that IP?<br>
><br>
> How are you passing the remote IP from nginx to Apache?<br>
><br>
><br>
> ><br>
> > Maxim Dounin<br>
> ><br>
> > _______________________________________________<br>
> > nginx mailing list<br>
> > <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> <mailto:<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>><br>
</div>> <mailto:<a href="mailto:nginx@nginx.org">nginx@nginx.org</a> <mailto:<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>>><br>
<div class="im">> > <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > nginx mailing list<br>
> > <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> <mailto:<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>><br>
> > <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
><br>
><br>
</div><div><div></div><div class="h5">> --<br>
> Jim Ohlstein<br>
><br>
> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> <mailto:<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
<br>
--<br>
Jim Ohlstein<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br>