Recognition

Posts

4 Posts
  • Published Answer

    Load Balancer forward client public IP address

    I never figured it out. For a few minutes I thought the nginx fix posted in stackoverflow was the solution, but then I saw it was n…
    By gestudio
  • Published Answer

    Load Balancer forward client public IP address

    It was an NGINX config issue. Fix here: http://stackoverflow.com/questions/25929599/nginx-replace-remote-addr-with-x-forwarded-…
    By gestudio
  • Published Answer

    Load Balancer forward client public IP address

    That’s what I initially though about, but there is nothing in phpinfo() in the $server section. Nothing like HTTPXFORWARDED …
    By gestudio
  • Published Question

    Load Balancer forward client public IP address

    How can I access the public IP address of the client behind a DO load balancer? Does the load balancer send any header with this IMPORTANT info? Can't find it in my $_SERVER info array :( thanks!
    Accepted Answer: @inigo3b78cb3721646dd1c6241 If you use var_dump( $_SERVER ); are you not seeing X-Forwarded-For? You'll want to look for HTTP_X_ headers when it comes to fetching information coming from the LB, such as the proto (HT...
    5 By gestudio Load Balancing