Commit 92d71fb8 authored by Lasse Karstensen's avatar Lasse Karstensen

s/req.backend/req.backend_hint/g

parent 95dd9683
......@@ -35,7 +35,7 @@ A backend declaration creates and initializes a named backend object::
The backend object can later be used to select a backend at request time::
if (req.http.host ~ "(?i)^(www.)?example.com$") {
set req.backend = www;
set req.backend_hint = www;
}
To avoid overloading backend servers, .max_connections can be set to
......
......@@ -229,7 +229,7 @@ special needs in VCL, you can use the X-UA-Device header like this::
# call some detection engine
if (req.http.X-UA-Device ~ "^mobile" || req.http.X-UA-device ~ "^tablet") {
set req.backend = mobile;
set req.backend_hint = mobile;
}
}
sub vcl_hash {
......
......@@ -62,9 +62,9 @@ Now we need tell where to send the difference URL. Lets look at vcl_recv.::
sub vcl_recv {
if (req.url ~ "^/java/") {
set req.backend = java;
set req.backend_hint = java;
} else {
set req.backend = default.
set req.backend_hint = default.
}
}
......@@ -88,9 +88,9 @@ You can have something like this:::
sub vcl_recv {
if (req.http.host ~ "foo.com") {
set req.backend = foo;
set req.backend_hint = foo;
} elsif (req.http.host ~ "bar.com") {
set req.backend = bar;
set req.backend_hint = bar;
}
}
......@@ -101,7 +101,7 @@ 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") {
set req.backend = foo;
set req.backend_hint = foo;
}
}
......@@ -138,7 +138,7 @@ call certain actions in vcl_init.::
sub vcl_recv {
# send all traffic to the bar director:
req.backend = bar.backend();
req.backend_hint = bar.backend();
}
This director is a round-robin director. This means the director will
......
......@@ -32,7 +32,7 @@ Since the client director was already a special case of the hash director, it ha
}
sub vcl_recv {
set req.backend = h.backend(client.ip);
set req.backend_hint = h.backend(client.ip);
}
error() is now a return value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment