Lighttpd behind a proxy

If you're running your lighttpd on a high-numbered port (>1023), then you're probably behind a reverse-proxy. In this case, lighttpd's log by default picks up the proxy's ip address, not the end-user's. In order to capture this information for all of your access logs, place the following line in the global context of your lighttpd.conf:

accesslog.format = "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""

For more information on what these options mean and additional options for logging, check out lighty's wiki.