[4.0] d0532eb Fix backends and vhosts example

Federico G. Schwindt fgsch at lodoss.net
Wed Aug 6 19:34:21 CEST 2014


commit d0532eb3b76ddaa5640a80d7a8e00a45c1a73fdc
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Tue Jul 8 21:50:56 2014 +0100

    Fix backends and vhosts example
    
    Submitted by:       nublaii via github

diff --git a/doc/sphinx/users-guide/vcl-backends.rst b/doc/sphinx/users-guide/vcl-backends.rst
index ecb8b31..5d31e77 100644
--- a/doc/sphinx/users-guide/vcl-backends.rst
+++ b/doc/sphinx/users-guide/vcl-backends.rst
@@ -100,7 +100,7 @@ this example this is intentional but you might want it to be a bit
 more tight, maybe relying on the ``==`` operator in stead, like this:::
 
     sub vcl_recv {
-        if (req.http.host == "foo.com" or req.http.host == "www.foo.com") {
+        if (req.http.host == "foo.com" || req.http.host == "www.foo.com") {
             set req.backend_hint = foo;
         }
     }



More information about the varnish-commit mailing list