Visitor IP

Ayberk Kimsesiz ayberk.kimsesiz at gmail.com
Thu Aug 11 17:43:27 CEST 2016


       Hi,

 # FORWARD THE IP OF THE REQUEST
  if (req.restarts == 0) {
    if (req.http.x-forwarded-for) {
      set req.http.X-Forwarded-For =
      req.http.X-Forwarded-For + ", " + client.ip;
    } else {
      set req.http.X-Forwarded-For = client.ip;
    }
  }

2016-08-11 18:39 GMT+03:00 Guillaume Quintard <
guillaume at varnish-software.com>:

> Have the website look at the X-forwarded-for header?
>
> Next varnish version will support the proxy protocol on the backend site,
> IIUC, so you won't even need the header trick.
>
> --
> Guillaume Quintard
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20160811/61974d8d/attachment.html>


More information about the varnish-misc mailing list