<div dir="ltr">request->header('x-forwarded-for');<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 8:45 AM, Hugues <span dir="ltr"><<a href="mailto:hugues@max4mail.com" target="_blank">hugues@max4mail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
I move my Dancer app from wpsgi to " starman + apache proxy"<br>
<br>
in my code, I registered client ip address with<br>
<br>
my $ip = request->remote_address();<br>
<br>
<br>
now, Ip address is always 127.0.0.1<br>
<br>
see my apache config<br>
<br>
<VirtualHost *:80><br>
ServerName <a href="http://admin.web.com" target="_blank">admin.web.com</a><br>
DocumentRoot /home/web/<br>
HostnameLookups Off<br>
UseCanonicalName Off<br>
ProxyPreserveHost On<br>
<br>
ProxyPass bootstrap !<br>
ProxyPass fontawesome !<br>
ProxyPass images !<br>
ProxyPass javascripts !<br>
ProxyPass css !<br>
ProxyPass / <a href="http://localhost:5002/" target="_blank">http://localhost:5002/</a> retry=0 Keepalive=on<br>
ProxyPassReverse / <a href="http://localhost:5002/" target="_blank">http://localhost:5002/</a><br>
TimeOut 300<br>
<Proxy *><br>
Order allow,deny<br>
Allow from all<br>
</Proxy><br>
</VirtualHost><br>
<br>
<br>
how I can get client Ip adress from my Dancer code ?<br>
thanks<br>
Hugues.<br>
<br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</blockquote></div><br></div>