AWStats single IP issues with LightTPD / Apache proxy
While setting up AWStats for ProjectStat.us on TextDrive, I ran into a problem. Every incoming request to ProjectStat.us is proxied through Apache to LightTPD. No problems to this point. But when it came time to run a stats program like AWStats on the log files, a problem appeared - every request has the same IP - Apache's.
After some quick searching, I came across James' hint. I was able to add the following line to my lighttpd.conf file and now all incoming requests have their unique IP logged.
accesslog.format = "%{X-Forwarded-For}i %v %u %t \"%r\" %>s %b \"%{User-Agent}i\" \"%{Referer}i\""