Squid configuration directive hosts_file

Squid configuration directive hosts_file

Available in: v7   v6   v5   v4   3.5   3.4   3.3   3.2   2.7   3.1   3.0   2.6

This directive is not available in the v8 version of Squid.

For older versions than v5 see the linked pages above

Configuration Details:

Option Name: hosts_file
Replaces:
Requires:
Default Value: hosts_file /etc/hosts
Suggested Config:
Location of the host-local IP name-address associations database. Most Operating Systems have such a file on different default locations: - Un*X & Linux: /etc/hosts - Windows NT/2000: %SystemRoot%\system32\drivers\etc\hosts (%SystemRoot% value install default is c:\winnt) - Windows XP/2003: %SystemRoot%\system32\drivers\etc\hosts (%SystemRoot% value install default is c:\windows) - Windows 9x/Me: %windir%\hosts (%windir% value is usually c:\windows) - Cygwin: /etc/hosts The file contains newline-separated definitions, in the form ip_address_in_dotted_form name [name ...] names are whitespace-separated. Lines beginning with an hash (#) character are comments. The file is checked at startup and upon configuration. If set to 'none', it won't be checked. If append_domain is used, that domain will be added to domain-local (i.e. not containing any dot character) host definitions.

Back

Introduction

Documentation

Support

Miscellaneous