Ubuntu/Web Servers/Squid - Proxy Server:修订间差异
第20行: | 第20行: | ||
<div style="width:100%; background-color:#F0F0F0; border: 1px solid #DFDFDF"> | <div style="width:100%; background-color:#F0F0F0; border: 1px solid #DFDFDF"> | ||
<div style="float:right; width: | <div style="float:right; width:95%; background-color:transparent"> | ||
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: | |||
</div> | </div> | ||
</div> | </div> | ||
=References= | =References= |
2016年6月27日 (一) 17:33的版本
本文引自Squid - Proxy Server.
Squid - Proxy Server
Squid is a full-featured web proxy cache server application which provides proxy and cache services for Hyper Text Transport Protocol (HTTP), File Transfer Protocol (FTP), and other popular network protocols. Squid can implement caching and proxying of Secure Sockets Layer (SSL) requests and caching of Domain Name Server (DNS) lookups, and perform transparent caching. Squid also supports a wide variety of caching protocols, such as Internet Cache Protocol (ICP), the Hyper Text Caching Protocol (HTCP), the Cache Array Routing Protocol (CARP), and the Web Cache Coordination Protocol (WCCP).
The Squid proxy cache server is an excellent solution to a variety of proxy and caching server needs, and scales from the branch office to enterprise level networks while providing extensive, granular access control mechanisms, and monitoring of critical parameters via the Simple Network Management Protocol (SNMP). When selecting a computer system for use as a dedicated Squid caching proxy server for many users ensure it is configured with a large amount of physical memory as Squid maintains an in-memory cache for increased performance.
Installation
At a terminal prompt, enter the following command to install the Squid server:
sudo apt install squid3
Configuration
Squid is configured by editing the directives contained within the /etc/squid3/squid.conf 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.
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: