Flexible load balancer with Symfony 2.1

Symfony 2.1 introduced an additional trusted_proxies field to talk about a structure trusted by trusted ones. Amazon Load Balancing tells you not to rely on your assigned IP address because it can change.

How do you set the trusted_proxies directive in such an environment? I am currently using trust_proxy_data , but it is deprecated and marked for deletion in Symfony 2.3.

+7
source share
2 answers

In Symfony 2.2, they added the ability to resolve a number of IP addresses that solve this problem. Unfortunately, on 2.1 you can only set trusted_proxies to true, allowing all proxies to change the IP address of the client.

0
source

I'm not an AWS expert, but I'm sure they offer you a DNS name that never changes for load balancing, so should you use that name instead of the ip address? Here is something interesting: http://nickhills.com/wp/2012/02/aws-elastic-load-balancing-with-a-static-ip-address/

0
source

All Articles