r1792 - trunk/varnish-cache/man
des at projects.linpro.no
des at projects.linpro.no
Tue Jul 31 08:06:28 CEST 2007
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";
More information about the varnish-commit
mailing list