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
a20d6afa
Commit
a20d6afa
authored
Jun 22, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://git.varnish-cache.org/git/varnish-cache
parents
ac1e3675
1354bed1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
vcl.rst
doc/sphinx/reference/vcl.rst
+25
-8
No files found.
doc/sphinx/reference/vcl.rst
View file @
a20d6afa
...
...
@@ -72,9 +72,6 @@ available where.
VCL has if tests, but no loops.
You may log arbitrary strings to the shared memory log with the
keyword *log*.
The contents of another VCL file may be inserted at any point in the
code by using the *include* keyword followed by the name of the other
file as a quoted string.
...
...
@@ -236,7 +233,8 @@ us to consider the backend healthy. .initial is how many of the
probes are considered good when Varnish starts - defaults to the same
amount as the threshold.
A backend with a probe can be defined like this:::
A backend with a probe can be defined like this, together with the
backend or director:::
backend www {
.host = "www.example.com";
...
...
@@ -250,18 +248,34 @@ A backend with a probe can be defined like this:::
}
}
It is also possible to specify the raw HTTP request::
Or it can be defined separately and then referenced:::
probe healthcheck {
.url = "/status.cgi";
.interval = 60s;
.timeout = 0.3 s;
.window = 8;
.threshold = 3;
.initial = 3;
}
backend www {
.host = "www.example.com";
.port = "http";
.probe = {
.probe = healthcheck;
}
If you have many backends this can simplify the config a lot.
It is also possible to specify the raw HTTP request::
probe rawprobe {
# NB: \r\n automatically inserted after each string!
.request =
"GET / HTTP/1.1"
"Host: www.foo.bar"
"Connection: close";
}
}
ACLs
...
...
@@ -819,9 +833,11 @@ based on the request URL:::
default_ttl run-time parameter, as that only affects document for
which the backend did not specify a TTL:::
import std; # needed for std.log
sub vcl_fetch {
if (beresp.ttl < 120s) {
log "Adjusting TTL";
std.
log "Adjusting TTL";
set beresp.ttl = 120s;
}
}
...
...
@@ -876,6 +892,7 @@ SEE ALSO
========
* varnishd(1)
* vmod_std(7)
HISTORY
=======
...
...
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