Name
visible_hostname
Synopsis
Use this directive when Squid can’t determine the fully qualified domain name on its
own or if you want to present a special, external name to the world.
Squid uses this name in error messages, FTP directory listings,
X-Cache
header values, cache
announcements, and for internal URLs.
Squid also puts the visible hostname into HTTP Via
headers, unless you also define the
unique_hostname directive. Note that you must use
unique_hostname if you have a cluster of caches
that have the same visible hostname.
Syntax | visible_hostname |
Default | No default |
Example | visible_hostname my.host.name |
Related | unique_hostname, hostname_aliases, announce_period |
Get Squid: The Definitive Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.