Amazon ELB and Apache
When you place your Apache Web Server behind an Amazon Elastic Load Balancer, Apache receives all requests from the ELB’s IP address.
Therefore, if you wish to do anything with the real client IP address, such as logging or whitelisting, you need to make use of the X-Forwarded-For HTTP Header Amazon ELB includes in each request which contains the IP address of the original host.
Two very helpful blog posts I found explaining both how to whilelist a particular request by IP address and how to set up your Apache logging behind the ELB to capture the original client IP address.
No comments yet.
Leave a comment
You must be logged in to post a comment.
Agile CTO
- @D_mitar i meant in general mate, what's the point of quora over twitter? just longer rants i guess... ;o) in reply to D_mitar 1 day ago
- @D_mitar why'd i want to follow you on twitter AND on quora mate? got e-mail suggesting i "follow" some people i'm already "following"... 1 day ago
- @kartar @agile_cto Thanks James, will definitely check that out! Andrew in reply to kartar 1 week ago
- investigating #puppet SSL connectivity frailty http://t.co/UhGZcZNo 1 week ago
- don't be scared to be wrong! it narrows down the right options... 1 week ago
- Ignore what you hear. Go with what you see. Evidence over opinion. 2 weeks ago
- tech_startup: Puppet certificate issues http://t.co/oM6y53rx 3 weeks ago
- have invented a new UNIX tool for cutting the grass: sudo chmown aeells:aeells squid.conf.bkp sudo: chmown: command not found 3 weeks ago
- I support #wikipediablackout Show your support here http://t.co/UFN8O0gk 2012-01-18
- reasonable man adapts himself to world; unreasonable man tries to adapt world to himself; => all progress depends on unreasonable man. 2012-01-12
- More updates...


