unset in Varnish - syntax error

Posted by Dude on Stack Overflow See other posts from Stack Overflow or by Dude
Published on 2010-05-19T21:49:10Z Indexed on 2010/05/19 21:50 UTC
Read the original article Hit count: 141

Filed under:
|
|

I'm trying to hide the "Server" header returned by Apache on every request, from Varnish.

Using in sub vcl_fetch:

unset obj.http.Server;

on Varnish start I get:

Expected action, 'if' or '}'
(/etc/varnish/default.vcl Line 43 Pos 9)
    unset obj.http.Server;
--------#####-----------------

Any ideas?

© Stack Overflow or respective owner

Related posts about varnish

Related posts about apache