[dancer-users] ip addess

Hugues hugues at max4mail.com
Wed Apr 22 08:45:11 BST 2015

I move my Dancer app from wpsgi to " starman + apache proxy"

in my code, I registered client ip address with

my $ip               = request->remote_address();

now, Ip address is always

see my apache config

<VirtualHost *:80>
     ServerName admin.web.com
     DocumentRoot /home/web/
     HostnameLookups Off
     UseCanonicalName Off
     ProxyPreserveHost On

     ProxyPass bootstrap !
     ProxyPass fontawesome !
     ProxyPass images !
     ProxyPass javascripts !
     ProxyPass css !
     ProxyPass / http://localhost:5002/ retry=0 Keepalive=on
     ProxyPassReverse / http://localhost:5002/
     TimeOut 300
     <Proxy *>
        Order allow,deny
        Allow from all

how I can get client Ip adress  from my Dancer code ?

More information about the dancer-users mailing list