I configured Varnish 3 with Apache and it works fine. However, I cannot get the ip client to log into Apache logs. I tried several search solutions without any success. Right now, my Apache access log file is registering the server IP address instead of the client IP addresses.
Here are my settings for your kind:
Varnish VCL: (/etc/varnish/default.vlc): http://pastebin.com/PuBqZ6fx
Apache configuration
/etc/httpd/conf/httpd.conf
LogFormat "% {X-Forwarded-For} i% l% u% t \"% r \ "%> s% b \"% {Referer} i \ "\"% {User-Agent} i \ "" varnishcombined
Apache virtual host
...... Other things ..... ErrorLog / fr-error-log logs CustomLog / fr-custom-log logs varnishcombined ...... Other things .....
Note. The installed version of Varnish is Lac-3.0.2-1.el5.x86_64
Thanks. Rachel
source share