Varnish 4.0 & Removing/changing headers
Sami Mäntysaari
sm at sami-mantysaari.com
Sun Jul 5 16:34:29 CEST 2015
Thank you, that fixed it. :)
5.7.2015, 16:55, Dridi Boukelmoune kirjoitti:
> Hi,
>
> The remove keyword was an alias to unset and is no longer supported in
> Varnish 4.
>
> Use "unset resp.http.Via;" instead.
>
> Dridi
>
> On Sun, Jul 5, 2015 at 3:35 PM, Andrew Langhorn
> <andrew.langhorn at digital.cabinet-office.gov.uk> wrote:
>> What error do you get? Removing HTTP response headers is still supported in
>> 4.x as far as I can remember.
>>
>>
>> On Sunday, 5 July 2015, Sami Mäntysaari <sm at sami-mantysaari.com> wrote:
>>> Hi,
>>>
>>> I would like to hide the fact that my service is using an varnish cache.
>>> How can I do so as every guide I have found has been for the 3.0
>>> version, but not for 4.0?
>>>
>>> sub vcl_deliver {
>>> remove resp.http.Via;
>>> remove resp.http.X-Whatever;
>>> remove resp.http.X-Powered-By;
>>> remove resp.http.X-Varnish;
>>> remove resp.http.Age;
>>> remove resp.http.Server;
>>> set resp.http.Server = "TFE";
>>> set resp.http.X-Powered-By = "Curiosity";
>>> }
>>>
>>> That for instance gives me an error.
>>>
>>> _______________________________________________
>>> varnish-misc mailing list
>>> varnish-misc at varnish-cache.org
>>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>>
>> --
>>
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
More information about the varnish-misc
mailing list