[Varnish] #1329: Option to respect X-Forwarded-For header in varnishncsa

Varnish varnish-bugs at varnish-cache.org
Thu Jul 18 15:30:01 CEST 2013


#1329: Option to respect X-Forwarded-For header in varnishncsa
----------------------+-------------------------
 Reporter:  mhelmich  |       Type:  enhancement
   Status:  new       |   Priority:  normal
Milestone:            |  Component:  varnishncsa
  Version:  3.0.4     |   Severity:  minor
 Keywords:            |
----------------------+-------------------------
 While varnishncsa offers a "-f" flag in order to respect a X-Forwarded-For
 request header, this flag implies a fixed log line format and cannot be
 used in conjunction with "-F".

 The attached commit changes the "-f" behaviour causing varnishncsa to use
 the value from the X-Forwarded-For header (if present) instead of the
 client IP while allowing a custom log format at the same time. No change
 to the log line format is required anymore, the forwarded address will be
 inserted into the %h placeholder.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1329>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list