We're currently using Lighttpd with FastCGI to serve PHP to our clients. We recently added load balancing through RackSpace Cloud to help us handle our traffic however, the client's IP is now the load balancer IP. All traffic is through HTTPS.
We've enabled mod_extforward and have tried all different configuration for with using our LB IP and the different headers ("X-Forwarded-For","Forwarded-For","X-Cluster-Client-Ip") and we cannot seem to get this to work!
Any ideas? Thank you!
phpinfo()
for your IP address? Under PHP 5.4 you could usegetallheaders()
, for earlier versions the easiest way is probably usingtcpdump -s 2000 -w dump
and then throwing this dump into Wireshark. – Thrips