If your Apache instance is behind a proxy or load balancer then you’ll need to setup a custom log format to capture the X-Forwarded-For header so that you logs include the IP address of the client:
1 |
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxycombined |