varnishtop hangs

Cryer,Phil Phil.Cryer at edwardjones.com
Wed Jan 9 17:35:58 CET 2008


<snip>
>>and on localhost. Varnish runs on port 80 and on the public ip. While 
>>checking the access.log of lighttpd. The webrequests are shown to come
from 127.0.0.1.
>>I would like to know wht configruation changes are required in varnish

>>to log the remote client ip in access.log.

>Varnish sends a header "X-Forwarded-for:" to lightttpd which it should
use in the logfile.  You need 
>to check the lighttpd config how to enable that.

In your lighttpd.conf, add:

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

http://fak3r.com/2008/01/09/howto-log-the-users-ip-not-the-proxys-in-lig
httpd-access-log/

Thanks for bringing this up, I finally got around to fixing it!

P
 
 If you are not the intended recipient of this message (including attachments), or if you have received this message in error, immediately notify us and delete it and any attachments.  If you no longer wish to receive e-mail from Edward Jones, please send this request to messages at edwardjones.com.  You must include the e-mail address that you wish not to receive e-mail communications.  For important additional information related to this e-mail, visit www.edwardjones.com/US_email_disclosure



More information about the varnish-misc mailing list