]> err.no Git - varnish/commitdiff
Fine-tune the vhost example.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 31 Jul 2007 06:06:28 +0000 (06:06 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 31 Jul 2007 06:06:28 +0000 (06:06 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1792 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/man/vcl.7

index 7781b152ed11623b00e914efe93a071375cec672..17deb22743fb649ba9e4b38e8c9bb886a7106c34 100644 (file)
@@ -559,8 +559,9 @@ backend images {
 
 sub vcl_recv {
     if (req.http.host ~ "^(www\.)?example\.com$") {
+        set req.http.host = "www.example.com";
         set req.backend = www;
-    } elsif (req.http.host ~ "^images\.example\.com") {
+    } elsif (req.http.host ~ "^images\.example\.com$") {
         set req.backend = images;
     } else {
         error 404 "Unknown virtual host";