Step-1: Add this line to "/etc/httpd/conf/httpd.conf" under the LogFormat Section.
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" varnishcombined
Step-2: Add the varnishcombined to CustomLog
CustomLog /var/log/apache2/www.example.com/access.log varnishcombined

0 comments:
Post a Comment