Reverse Proxy Multi IP Fix

Description of your first forum.
Post Reply
admin
Site Admin
Posts: 9
Joined: Wed Mar 06, 2019 11:51 pm

Reverse Proxy Multi IP Fix

Post by admin » Thu Mar 07, 2019 12:14 am

// -bk: Below line added to deal with AWS ALB and multiple internal IP addys. Grabbing clients single IP fixes the session being broken
$_SERVER['REMOTE_ADDR'] = htmlspecialchars((string) $_SERVER['HTTP_X_FORWARDED_FOR']);
8-)

admin
Site Admin
Posts: 9
Joined: Wed Mar 06, 2019 11:51 pm

Re: Reverse Proxy Multi IP Fix

Post by admin » Thu Mar 07, 2019 1:42 pm

Looking at ACP I see server settings that may be useful here.

Session validation by IP could use A.B instead which would cover the IP addresses possible by the load balancer.

There are other settings that refer to x-forwarded-for that could be relevant.

For now I think we leave the settings as is. It's nice to be able to look at the who's online app and see the real client IP address.

-bk

Post Reply