|
130.
|
|
|
At a terminal prompt, enter the following command to install the Squid server:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:858(para)
|
|
131.
|
|
|
sudo apt install squid
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:863(command)
|
|
132.
|
|
|
Squid is configured by editing the directives contained within the <filename>/etc/squid/squid.conf</filename> configuration file. The following examples illustrate some of the directives which may be modified to affect the behavior of the Squid server. For more in-depth configuration of Squid, see the References section.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:869(para)
|
|
133.
|
|
|
Prior to editing the configuration file, you should make a copy of the original file and protect it from writing so you will have the original settings as a reference, and to re-use as necessary. Make this copy and protect it from writing using the following commands:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:875(para)
|
|
134.
|
|
|
sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.original
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:881(command)
|
|
135.
|
|
|
sudo chmod a-w /etc/squid/squid.conf.original
|
|
|
|
sudo chmod a-w /etc/squid/squid.conf.original
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:882(command)
|
|
136.
|
|
|
To set your Squid server to listen on TCP port 8888 instead of the default TCP port 3128, change the http_port directive as such:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:889(para)
|
|
137.
|
|
|
http_port 8888
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
http_port 8888
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:893(programlisting)
|
|
138.
|
|
|
Change the visible_hostname directive in order to give the Squid server a specific hostname. This hostname does not necessarily need to be the computer's hostname. In this example it is set to <emphasis>weezie</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:898(para)
|
|
139.
|
|
|
visible_hostname weezie
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
visible_hostname weezie
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:902(programlisting)
|