From 6c54de4b8772be3b1768f3bfc64fea4fe5eefca6 Mon Sep 17 00:00:00 2001 From: ingvar Date: Tue, 2 Sep 2008 13:59:13 +0000 Subject: [PATCH] vcl changes from 1.x to 2.0 documented for Red Hat git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3153 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/redhat/README.redhat | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/varnish-cache/redhat/README.redhat b/varnish-cache/redhat/README.redhat index f9a24d7f..f9e02cb4 100644 --- a/varnish-cache/redhat/README.redhat +++ b/varnish-cache/redhat/README.redhat @@ -5,6 +5,24 @@ build varnish with. This means GCC 3.4.6 on a standard RHEL4 system. Varnish should work fine with GCC 3.3 and above. +Upgrading from 1.x to 2.0 +========================= +There are a few changes in the vcl language from varnish-1.x to 2.0. +Because of varnish' dynamic vcl loading feature, there is no way to +guarantee that the vcl file in use actually exists on disk. Thus, +there is no way to securely automate this process, and one must do the +changes by hand. + +In vcl, the word "insert" has been replaced by "deliver". + +In the vcl declaration of backends, where one earlier used "set +backend", backend parts are now just prefixed with a dot, so the +default localhost configuration will look like this: + +backend default { + .host = "127.0.0.1"; + .port = "80"; +} Configuration of addresses and ports ==================================== -- 2.39.5