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
aff42fa5
Commit
aff42fa5
authored
Mar 12, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain why Host may be 0.0.0.0 for a UDS backend in "Upgrading".
parent
6c6e320b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
upgrading-6.0.rst
doc/sphinx/whats-new/upgrading-6.0.rst
+29
-0
No files found.
doc/sphinx/whats-new/upgrading-6.0.rst
View file @
aff42fa5
...
...
@@ -365,6 +365,35 @@ protocol is not used, then ``0.0.0.0`` will be added to
Again, this is probably not a concern if ``client.ip`` is set via the
PROXY protocol.
UDS backends and the Host header
--------------------------------
By default, Varnish forwards the Host header from a client request to
the backend. If there is no Host header in the client request, and the
``.host_header`` field was set in the backend declaration, then that
value is used for the backend Host header. For backends declared with
the ``.host`` field (with a domain name or IP address), then if there
is neither a client Host header nor a ``.host_header`` declaration,
the value of ``.host`` is set as the Host header of the backend
request.
If the backend was declared with ``.path`` for a socket path, then the
backend Host header is set to ``0.0.0.0`` under those conditions.
To re-state that:
* If the backend was declared with ``.path`` to connect to a Unix
domain socket, ...
* and ``.host_header`` was not set in the backend declaration, ...
* and there is no Host header in the client request, ...
* then the Host header in the backend request is set to ``0.0.0.0``.
If you want to avoid that, set a ``.host_header`` value for the
backend, or set a value for the Host header in VCL.
VMOD std
--------
...
...
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