title: Varnish Client IP not logging in Apache Logs
body: <p>I've configured Varnish 3 with Apache and it is running perfectly alright. However i'm unable to get the Client ip logged in Apache logs. I tried a few solutions googling around with no luck. Right now my Apache access log file is logging the server IP instead of client IP addresses.</p>
  
  <p>Here are my configurations for your kind consideration:</p>
  
  <p>Varnish VCL:  (/etc/varnish/default.vlc): <a href="http://pastebin.com/PuBqZ6fx">http://pastebin.com/PuBqZ6fx</a></p>
  
  <h1>Apache Config</h1>
  
  <p>/etc/httpd/conf/httpd.conf</p>
  
  <p>LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" varnishcombined</p>
  
  <h1>Apache Virtual Host</h1>
  
  <p>
      ...... Other Stuff .....
      ErrorLog logs/fr-error-log
      CustomLog logs/fr-custom-log varnishcombined
      ...... Other Stuff .....
  </p>
  
  <p>Note: Varnish Version installed is varnish-3.0.2-1.el5.x86_64</p>
  
  <p>Thanks.
  Raheel</p>