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
76eb8d74
Commit
76eb8d74
authored
Nov 02, 2015
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use client.ip instead of client.identity
Indentation while I'm here.
parent
4f080828
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
vmod.vcc
lib/libvmod_directors/vmod.vcc
+10
-10
No files found.
lib/libvmod_directors/vmod.vcc
View file @
76eb8d74
...
...
@@ -67,17 +67,17 @@ Example
$Method VOID .add_backend(BACKEND)
Description
Add a backend to the round-robin director.
Add a backend to the round-robin director.
Example
vdir.add_backend(backend1);
vdir.add_backend(backend2);
vdir.add_backend(backend1);
vdir.add_backend(backend2);
$Method BACKEND .backend()
Description
Pick a backend from the director.
Pick a backend from the director.
Example
set req.backend_hint = vdir.backend();
set req.backend_hint = vdir.backend();
$Object fallback()
...
...
@@ -106,9 +106,9 @@ Example
$Method BACKEND .backend()
Description
Pick a backend from the director.
Pick a backend from the director.
Example
set req.backend_hint = vdir.backend();
set req.backend_hint = vdir.backend();
$Object random()
...
...
@@ -149,10 +149,10 @@ $Object hash()
Description
Create a hashing backend director.
The director chooses the backend server by computing a hash/digest
of
the string given to .backend().
The director chooses the backend server by computing a hash/digest
of
the string given to .backend().
Commonly used with ``client.i
dentity
`` or a session cookie to get
Commonly used with ``client.i
p
`` or a session cookie to get
sticky sessions.
Example
...
...
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