Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc
Varnish is not always adding X-Forwarded-For
 

Index | Next | Previous | View Flat


admin at dougware

Aug 3, 2012, 7:17 AM


Views: 701
Permalink
Varnish is not always adding X-Forwarded-For

We need Varnish to always add X-Forwarded-For so that we can see the
visitor's IP when they submit a poll answer.

We have this setup, but we are still seeing about half of our requests not
include the X-Forwarded-For header.

sub vcl_pipe {
set bereq.http.X-Forwarded-For = req.http.X-Forwarded-For;
set bereq.http.X-Forwarded-For = regsub(bereq.http.X-Forwarded-For,
"$", ", ");
set bereq.http.X-Forwarded-For = regsub(bereq.http.X-Forwarded-For,
"$", client.ip);
set req.http.connection = "close";
}

Sincerely,
Doug Eubanks
admin [at] dougware
K1DUG
(919) 201-8750

Subject User Time
Varnish is not always adding X-Forwarded-For admin at dougware Aug 3, 2012, 7:17 AM
    RE: Varnish is not always adding X-Forwarded-For kervin at adevsoft Aug 13, 2012, 3:50 PM
    Re: Varnish is not always adding X-Forwarded-For pprocacci at datapipe Aug 13, 2012, 4:43 PM
        Re: Varnish is not always adding X-Forwarded-For admin at dougware Aug 15, 2012, 10:33 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.