Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
92d71fb8
Commit
92d71fb8
authored
Feb 26, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/req.backend/req.backend_hint/g
parent
95dd9683
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
vcl.rst
doc/sphinx/reference/vcl.rst
+1
-1
devicedetection.rst
doc/sphinx/users-guide/devicedetection.rst
+1
-1
vcl-backends.rst
doc/sphinx/users-guide/vcl-backends.rst
+6
-6
upgrading.rst
doc/sphinx/whats-new/upgrading.rst
+1
-1
No files found.
doc/sphinx/reference/vcl.rst
View file @
92d71fb8
...
...
@@ -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
...
...
doc/sphinx/users-guide/devicedetection.rst
View file @
92d71fb8
...
...
@@ -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 {
...
...
doc/sphinx/users-guide/vcl-backends.rst
View file @
92d71fb8
...
...
@@ -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
...
...
doc/sphinx/whats-new/upgrading.rst
View file @
92d71fb8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment