From fb3d84f622dd6aa9fb0d90ff74b4edcd03313596 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 31 Jul 2007 06:06:28 +0000 Subject: [PATCH] Fine-tune the vhost example. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1792 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/man/vcl.7 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/man/vcl.7 b/varnish-cache/man/vcl.7 index 7781b152..17deb227 100644 --- a/varnish-cache/man/vcl.7 +++ b/varnish-cache/man/vcl.7 @@ -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"; -- 2.39.5