]> err.no Git - varnish/commitdiff
Synchronize with bin/varnishd/mgt_vcc.c.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 21 Aug 2007 15:37:17 +0000 (15:37 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 21 Aug 2007 15:37:17 +0000 (15:37 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1916 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/etc/default.vcl
varnish-cache/man/vcl.7

index a8886549edad3ca1ea6b7777c284a39337e7f780..dfa50729bcdaa2de3eac583d034686c3070fd08c 100644 (file)
@@ -47,6 +47,8 @@ backend default {
 ## Called when entering an object into the cache
 #
 #sub vcl_hash {
+#      set req.hash += req.url;
+#      set req.hash += req.http.host;
 #      hash;
 #}
 #
index 996c0d34ee07daa87a1cc74580ebaa99355e8c9b..2dfbda0716680cebd0bf29f79216ad0274f4a3af 100644 (file)
@@ -513,6 +513,8 @@ sub vcl_pass {
 }
 
 sub vcl_hash {
+    set req.hash += req.url;
+    set req.hash += req.http.host;
     hash;
 }