proxy_set_header Host $host;<br>proxy_set_header X-Real-IP $remote_addr;<br>proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
<br><br><br>And on apache :<br><br>LoadModule rpaf_module modules/<a href="http://mod_rpaf-2.0.so">mod_rpaf-2.0.so</a><br>RPAFenable On<br>RPAFsethostname On<br>RPAFproxy_ips 127.0.0.1<br>RPAFheader X-Forwarded-For<br><br>
<br><br><br><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:23 PM, Albuquerque Rui wrote:<br>
> Yes that's right. It's really strange that i'm the only one having this<br>
> problem with mod_rpaf 0.6 :( :( :(<br>
><br>
><br>
</div>> 2011/8/30 Maxim Dounin <<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">><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>
</div>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>
<div class="im"><br>
<br>
><br>
> Maxim Dounin<br>
><br>
> _______________________________________________<br>
> nginx mailing list<br>
</div>> <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><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
<br>
<br>
</div>--<br>
<font color="#888888">Jim Ohlstein<br>
</font><div><div></div><div class="h5"><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>