r1196 - in trunk/varnish-cache: . etc

des at projects.linpro.no des at projects.linpro.no
Thu Oct 19 11:16:03 CEST 2006


Author: des
Date: 2006-10-19 11:16:03 +0200 (Thu, 19 Oct 2006)
New Revision: 1196

Added:
   trunk/varnish-cache/etc/
   trunk/varnish-cache/etc/vcl.conf
Log:
Add sample VCL config.

Added: trunk/varnish-cache/etc/vcl.conf
===================================================================
--- trunk/varnish-cache/etc/vcl.conf	2006-10-18 14:32:11 UTC (rev 1195)
+++ trunk/varnish-cache/etc/vcl.conf	2006-10-19 09:16:03 UTC (rev 1196)
@@ -0,0 +1,30 @@
+#
+# This is a basic VCL configuration file for varnish.  See the vcl(7)
+# man page for details on VCL syntax and semantics.
+#
+# $Id$
+#
+
+backend default {
+        set backend.host = "127.0.0.1";
+        set backend.port = "8080";
+}
+
+sub vcl_recv {
+        if (req.request == "POST") {
+                pipe;
+        }
+
+        # force lookup even when cookies are present
+        if (req.request == "GET" && req.http.cookie) {
+                lookup;
+        }
+}
+
+sub vcl_fetch {
+        # force minimum ttl of 180 seconds
+        if (obj.ttl < 180s) {
+                set obj.ttl = 180s;
+        }
+}
+


Property changes on: trunk/varnish-cache/etc/vcl.conf
___________________________________________________________________
Name: svn:keywords
   + Id




More information about the varnish-commit mailing list