| Index | Alphabetical Index |
Option Name: | http_port |
---|---|
Replaces: | ascii_port |
Requires: | |
Default Value: | none |
Suggested Config: |
# Squid normally listens to port 3128 http_port 3128 |
Usage: port [options] hostname:port [options] 1.2.3.4:port [options] The socket addresses where Squid will listen for HTTP client requests. You may specify multiple socket addresses. There are three forms: port alone, hostname with port, and IP address with port. If you specify a hostname or IP address, Squid binds the socket to that specific address. This replaces the old 'tcp_incoming_address' option. Most likely, you do not need to bind to a specific address, so you can use the port number alone. If you are running Squid in accelerator mode, you probably want to listen on port 80 also, or instead. The -I command line option will override the *first* port specified here. You may specify multiple socket addresses on multiple lines. Options: transparent Support for transparent interception of outgoing requests without browser settings. tproxy Support Linux TPROXY for spoofing outgoing connections using the client IP address. accel Accelerator mode. See also the related vhost, vport and defaultsite directives. defaultsite=domainname What to use for the Host: header if it is not present in a request. Determines what site (not origin server) accelerators should consider the default. Defaults to visible_hostname:port if not set May be combined with vport=NN to override the port number. Implies accel. vhost Accelerator mode using Host header for virtual domain support. Implies accel. vport Accelerator with IP based virtual host support. Implies accel. vport=NN As above, but uses specified port number rather than the http_port number. Implies accel. allow-direct Allow direct forwarding in accelerator mode. Normally accelerated requests is denied direct forwarding as it never_direct was used. urlgroup= Default urlgroup to mark requests with (see also acl urlgroup and url_rewrite_program) protocol= Protocol to reconstruct accelerated requests with. Defaults to http. no-connection-auth Prevent forwarding of Microsoft connection oriented authentication (NTLM, Negotiate and Kerberos) act-as-origin Act is if this Squid is the origin server. This currently means generate own Date: and Expires: headers. Implies accel. http11 Enables HTTP/1.1 support to clients. The HTTP/1.1 support is still incomplete with an internal HTTP/1.0 hop, but should work with most clients. The main HTTP/1.1 features missing due to this is forwarding of requests using chunked transfer encoding (results in 411) and forwarding of 1xx responses (silently dropped) name= Specifies a internal name for the port. Defaults to the port specification (port or addr:port) tcpkeepalive[=idle,interval,timeout] Enable TCP keepalive probes of idle connections idle is the initial time before TCP starts probing the connection, interval how often to probe, and timeout the time before giving up. If you run Squid on a dual-homed machine with an internal and an external interface we recommend you to specify the internal address:port in http_port. This way Squid will only be visible on the internal address. |
|
| Index | Alphabetical Index |