SOURCES: varnish.conf (NEW) - extracted from tarball from src.rpm

glen glen at pld-linux.org
Fri Dec 1 10:10:28 CET 2006


Author: glen                         Date: Fri Dec  1 09:10:28 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- extracted from tarball from src.rpm

---- Files affected:
SOURCES:
   varnish.conf (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/varnish.conf
diff -u /dev/null SOURCES/varnish.conf:1.1
--- /dev/null	Fri Dec  1 10:10:28 2006
+++ SOURCES/varnish.conf	Fri Dec  1 10:10:23 2006
@@ -0,0 +1,31 @@
+#
+# 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 {
+	# pass mode can't handle POST (yet)
+        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;
+        }
+}
+
================================================================


More information about the pld-cvs-commit mailing list