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
13db0ab6
Commit
13db0ab6
authored
Jan 19, 2017
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify %r formatter wrt multiple Host headers
Also clarify %{X}i and %{X}o wrt multiple X headers. Fixes #2190.
parent
a3d915f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
varnishncsa.rst
doc/sphinx/reference/varnishncsa.rst
+7
-4
No files found.
doc/sphinx/reference/varnishncsa.rst
View file @
13db0ab6
...
@@ -98,7 +98,8 @@ Supported formatters are:
...
@@ -98,7 +98,8 @@ Supported formatters are:
total bytes sent to the backend.
total bytes sent to the backend.
%{X}i
%{X}i
The contents of request header X.
The contents of request header X. If the header appears multiple times
in a single transaction, the last occurrence is used.
%l
%l
Remote logname. Always '-'.
Remote logname. Always '-'.
...
@@ -107,7 +108,8 @@ Supported formatters are:
...
@@ -107,7 +108,8 @@ Supported formatters are:
Request method. Defaults to '-' if not known.
Request method. Defaults to '-' if not known.
%{X}o
%{X}o
The contents of response header X.
The contents of response header X. If the header appears multiple
times in a single transaction, the last occurrence is used.
%O
%O
In client mode, total bytes sent to client. In backend mode, total
In client mode, total bytes sent to client. In backend mode, total
...
@@ -178,8 +180,7 @@ Supported formatters are:
...
@@ -178,8 +180,7 @@ Supported formatters are:
of fields, and only the nth part of the record will be matched
of fields, and only the nth part of the record will be matched
against. Fields start counting at 1. Defaults to '-' when the tag
against. Fields start counting at 1. Defaults to '-' when the tag
is not seen, or when the field is out of bounds. If a tag appears
is not seen, or when the field is out of bounds. If a tag appears
several times in a single transaction, only the first occurrence
multiple times in a single transaction, the first occurrence is used.
is used.
SIGNALS
SIGNALS
=======
=======
...
@@ -195,6 +196,8 @@ NOTES
...
@@ -195,6 +196,8 @@ NOTES
The %r formatter is equivalent to "%m http://%{Host}i%U%q %H". This
The %r formatter is equivalent to "%m http://%{Host}i%U%q %H". This
differs from apache's %r behavior, equivalent to "%m %U%q %H".
differs from apache's %r behavior, equivalent to "%m %U%q %H".
Furthermore, when using the %r formatter, if the Host header appears
multiple times in a single transaction, the first occurrence is used.
EXAMPLE
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