[dancer-users] ip addess
alex at biotec.tu-dresden.de
Fri Apr 24 22:05:39 BST 2015
On 04/23/2015 04:02 PM, Yitzchak Scott-Thoennes wrote:
> On Thu, Apr 23, 2015 at 12:45 AM, Alex Mestiashvili
> <alex at biotec.tu-dresden.de> wrote:
>> Alternatively one can use mod_rpaf  for apache to set the necessary
>> This code works for me together with mod_rpaf:
>> my $ip = request->forwarded_for_address || request->remote_address;
> I thought with mod_rpaf, you could just use request->remote_address.
> And that mod_rpaf is needed on the proxied server, not the proxy
> server, which is not apache in this case.
Yes, that's correct. mod_rpaf is for the backend "apache" server.
Now I reread the thread again and see that backend is starman..., sorry.
Just in my configuration the backend is apache and dancer works via fcgi
More information about the dancer-users