r1435 - branches/1.0/etc

des at projects.linpro.no des at projects.linpro.no
Wed May 16 16:31:46 CEST 2007


Author: des
Date: 2007-05-16 16:31:46 +0200 (Wed, 16 May 2007)
New Revision: 1435

Added:
   branches/1.0/etc/Makefile.am
   branches/1.0/etc/default.vcl
Log:
For some reason, svnmerge failed to add these two files.


Added: branches/1.0/etc/Makefile.am
===================================================================
--- branches/1.0/etc/Makefile.am	2007-05-16 14:29:46 UTC (rev 1434)
+++ branches/1.0/etc/Makefile.am	2007-05-16 14:31:46 UTC (rev 1435)
@@ -0,0 +1,3 @@
+# $Id: Makefile.am 1426 2007-05-16 09:35:18Z des $
+
+EXTRA_DIST = default.vcl

Added: branches/1.0/etc/default.vcl
===================================================================
--- branches/1.0/etc/default.vcl	2007-05-16 14:29:46 UTC (rev 1434)
+++ branches/1.0/etc/default.vcl	2007-05-16 14:31:46 UTC (rev 1435)
@@ -0,0 +1,88 @@
+#
+# This is a basic VCL configuration file for varnish.  See the vcl(7)
+# man page for details on VCL syntax and semantics.
+#
+# $Id: default.vcl 1424 2007-05-15 19:38:56Z des $
+#
+
+# Default backend definition.  Set this to point to your content
+# server.
+
+backend default {
+	set backend.host = "127.0.0.1";
+	set backend.port = "8080";
+}
+
+# Below is a commented-out copy of the default VCL logic.  If you
+# redefine any of these subroutines, the built-in logic will be
+# appended to your code.
+
+## Called when a client request is received
+#
+#sub vcl_recv {
+#	if (req.request != "GET" && req.request != "HEAD") {
+#		pipe;
+#	}
+#	if (req.http.Expect) {
+#		pipe;
+#	}
+#	if (req.http.Authenticate || req.http.Cookie) {
+#		pass;
+#	}
+#	lookup;
+#}
+#
+## Called when entering pipe mode
+#
+#sub vcl_pipe {
+#	pipe;
+#}
+#
+## Called when entering pass mode
+#
+#sub vcl_pass {
+#	pass;
+#}
+#
+## Called when entering an object into the cache
+#
+#sub vcl_hash {
+#	hash;
+#}
+#
+## Called when the requested object was found in the cache
+#
+#sub vcl_hit {
+#	if (!obj.cacheable) {
+#		pass;
+#	}
+#	deliver;
+#}
+#
+## Called when the requested object was not found in the cache
+#
+#sub vcl_miss {
+#	fetch;
+#}
+#
+## Called when the requested object has been retrieved from the
+## backend, or the request to the backend has failed
+#
+#sub vcl_fetch {
+#	if (!obj.valid) {
+#		error;
+#	}
+#	if (!obj.cacheable) {
+#		pass;
+#	}
+#	if (resp.http.Set-Cookie) {
+#		pass;
+#	}
+#	insert;
+#}
+#
+## Called when an object nears its expiry time
+#
+#sub vcl_timeout {
+#	discard;
+#}




More information about the varnish-commit mailing list