<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 [EMAIL PROTECTED]  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
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to