[4.0] 130ada9 Update tutorial for 4.0

Per Buer perbu at varnish-software.com
Thu Mar 13 10:24:24 CET 2014


commit 130ada9d511ee84046661166f904dd27cc0a2d57
Author: Per Buer <perbu at varnish-software.com>
Date:   Thu Feb 6 13:51:26 2014 +0100

    Update tutorial for 4.0

diff --git a/doc/sphinx/tutorial/backend_servers.rst b/doc/sphinx/tutorial/backend_servers.rst
index 69d1c28..476d325 100644
--- a/doc/sphinx/tutorial/backend_servers.rst
+++ b/doc/sphinx/tutorial/backend_servers.rst
@@ -15,6 +15,8 @@ is probably /etc/varnish/default.vcl.
 If you've been following the tutorial there is probably a section of
 the configuration that looks like this:::
 
+  vcl 4.0;
+  
   backend default {
       .host = "www.varnish-cache.org";
       .port = "80";
@@ -31,10 +33,12 @@ server so now we need to tie it to the origin.
 For this example, let's pretend the origin server is running on
 localhost, port 8080.::
 
-          backend default {
-                .host = "127.0.0.1";
-    		.port = "8080";
-	  }
+  vcl 4.0;
+
+  backend default {
+    .host = "127.0.0.1";
+    .port = "8080";
+  }
 
 
 Varnish can have several backends defined and can you can even join
diff --git a/doc/sphinx/tutorial/starting_varnish.rst b/doc/sphinx/tutorial/starting_varnish.rst
index ed2ca12..58bf574 100644
--- a/doc/sphinx/tutorial/starting_varnish.rst
+++ b/doc/sphinx/tutorial/starting_varnish.rst
@@ -37,6 +37,8 @@ Fire up your favorite editor and edit /etc/varnish/default.vcl. Most
 of it is commented out but there is some text that is not. It will
 probably look like this::
 
+  vcl 4.0;
+  
   backend default {
       .host = "127.0.0.1";
       .port = "8080";
@@ -45,6 +47,8 @@ probably look like this::
 We'll change it and make it point to something that works. Hopefully
 www.varnish-cache.org is up. Let's use that. Replace the text with::
 
+  vcl 4.0;
+  
   backend default {
       .host = "www.varnish-cache.org";
       .port = "80";



More information about the varnish-commit mailing list