POST x-forwarded-for
Alex F
alex at acasa.ro
Thu Jun 24 15:41:34 CEST 2010
I think I got it:
sub vcl_pipe {
set bereq.http.connection = "close";
if (bereq.http.x-forwarded-for) {
set bereq.http.X-forwarded-for =
bereq.http.X-forwarded-for ", "regsub(client.ip, ":.*", "");
} else {
set bereq.http.X-forwarded-for = regsub(client.ip,
":.*", "");
}
This should be all of it, no?
On 24.6.2010 14:24, Bedis 9 wrote:
> Hi,
>
> In which hook have you put your peace of code?
>
> cheers
>
>
>
More information about the varnish-misc
mailing list