[master] 3615621 Fix backends and vhosts example

Federico G. Schwindt fgsch at lodoss.net
Tue Jul 8 22:54:11 CEST 2014


commit 361562168e94f62a8c0f67a69689269a4c8a4a85
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