Just to follow up from my last post.. sometimes ELB will bounce you from 2 internal IPs, both within the 10.0.0.0/8 range. I think it happens when you have instances that are spread across multiple AZs. It appears that HttpRealIpModule does not handle multiple trusted proxies correctly and only seems to work with one trusted proxy. It looks like someone has run into this issue before, http:/by ciaran - How to...
Don't mean to resurrect a very old thread but I ran into a similar issue recently and came across a different solution, so I though I would share! Similarly we are running a number Amazon EC2 machines behind an AWS Elastic Load Balancer. We wanted to use the HttpLimitReqModule in order limit the number of requests for a given session i.e. stop a DOS attack. Because we were running behind theby ciaran - How to...