I'm running Windows Server 2008 in EC2 instances in Amazon's Web Services. These servers are behind a load balancer. As a result, the "client" IP address I see in the IIS logs is really the load balancer. What I'd really like is to see the actual remote client's IP address in the logs.
Amazon's load balancer does appear to be properly placing the client IP in the x-forwarded-for HTTP header (I checked with wireshark), but I cannot get IIS 7 to log this. I have tried using the 2 HTTP modules without success:
- http://blogs.iis.net/anilr/archive/2009/03/03/client-ip-not-logged-on-content-server-when-using-arr.aspx
- http://devcentral.f5.com/weblogs/joe/archive/2009/12/23/x-forwarded-for-http-module-for-iis7-source-included.aspx
Both modules haven't been updated in a while, so maybe they're out of date. Has anyone successfully set something like this up in AWS?