Mailing List Archive

r1792 - trunk/varnish-cache/man
Author: des
Date: 2007-07-31 08:06:28 +0200 (Tue, 31 Jul 2007)
New Revision: 1792

Modified:
trunk/varnish-cache/man/vcl.7
Log:
Fine-tune the vhost example.


Modified: trunk/varnish-cache/man/vcl.7
===================================================================
--- trunk/varnish-cache/man/vcl.7 2007-07-30 14:39:03 UTC (rev 1791)
+++ trunk/varnish-cache/man/vcl.7 2007-07-31 06:06:28 UTC (rev 1792)
@@ -559,8 +559,9 @@

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";