Synopsis This parameter allows the user to define the address on which Squid will listen for client's http requests. This is a required parameter, and there are no defaults. Without this configuration, Squid will never start. Arguments
port
|
Port to which Squid will bind the socket
|
hostname
|
hostname to which Squid will bind the socket
|
ip_address
|
ip_address to which Squid will bind the socket
|
When a hostname or IP address is specified (as shown in variations 2 and 3 above), Squid binds the socket to that specific address. Note: The http_port parameter may be specified multiple times, with different addresses each time. This will cause Squid to listen on multiple ports. Options are arguments that further control the behavior of the Squid proxy. The supported values are explained in the table below:
Options
|
Functions
|
accel
|
Configure Squid in accelerator mode
|
transparent
|
Configure Squid as transparent proxies
|
vhost
|
Accelerator using virtual hosts
|
vport
|
Accelerator with virtual ip host support
|
vport=NN
|
As above, but uses specified port number rather than the http_port number.
|
defaultsite=xx
|
Main web site name for accelerators. also implies accel option
|
protocol=
|
Protocol to reconstruct accelerated requests with. Defaults to http.
|
Example(s) http_port 3128 http_port 172.16.1.53:3300 http_port 172.16.1.53:80 accel defaultsite=visolve.com http_port 3128 transparent
|