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 <
[email protected]>:

> 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
>
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to