[4.0] e631d31 Add a skeleton VCL file to help new users along.

Lasse Karstensen lkarsten at varnish-software.com
Thu Mar 13 10:24:21 CET 2014


commit e631d319167d1f8a576bebc91e3b2b4f999ef15c
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date:   Mon Jan 27 11:32:13 2014 +0100

    Add a skeleton VCL file to help new users along.

diff --git a/etc/example.vcl b/etc/example.vcl
new file mode 100644
index 0000000..8122340
--- /dev/null
+++ b/etc/example.vcl
@@ -0,0 +1,36 @@
+#
+# This is an example VCL file for Varnish.
+# It does not do anything by default, delegating control to the builtin vcl.
+# The builtin VCL is called when there is no explicit explicit return
+# statement.
+
+# See the VCL tutorial at https://www.varnish-cache.org/docs/trunk/tutorial/
+# See http://varnish-cache.org/trac/wiki/VCLExamples for more examples.
+
+# Marker to tell the VCL compiler that this VCL has been adapted to the new 4.0
+# format.
+vcl 4.0;
+
+# Default backend definition. Set this to point to your content server.
+backend default {
+    .host = "127.0.0.1";
+    .port = "8080";
+}
+
+sub vcl_recv {
+    # Happens before we check if we have this in cache already.
+    # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_recv
+}
+
+sub vcl_fetch {
+    # Happens after we have read the response headers from the backend.
+    # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_fetch
+#
+}
+
+sub vcl_deliver {
+    # Happens when we have all the pieces we need, and are about to send the
+    # response to the client.
+    # See http://www.varnish-cache.org/docs/3.0/tutorial/vcl.html#vcl_fetch
+}
+



More information about the varnish-commit mailing list