Proxy

Name

Proxy -- defines HTTP proxy address

indexer.conf

Synopsis

Proxy {address...}

Description

Proxy defines whether to use a proxy server rather then direct connection.

Using proxy is possible for the documents with URLs of types http://, https:// and ftp://.

The proxy address should be specified in URL notation:


Proxy http://user:password@hostname:8080/
    
The authorization and the port parts can be omitted.

The default port value is 3128, which is the port used by the Squid proxy server.

If the Proxy value is none, or if no Proxy commands are defined, then direct connection is used.

If multiple addresses are given in the same Proxy command, then indexer will randomly choose one of the addresses for every document.

Scope

Proxy can be set multiple times and affects on all following Server and Realm commands until the end of the configuration file, or until the next Proxy command.

Examples


# Proxy on the host proxy1.somewhere.com, port 3128:
Proxy http://proxy1.somewhere.com/

# Proxy on port 8090:
Proxy http://proxy2.somewhere.com:8090/

# Proxy on port 3128, with authorization:
Proxy http://foo:bar@proxy3.somewhere/

# Using IP notation:
Proxy http://192.168.21.1/

# Randomly choose one of the proxies:
Proxy http://proxy1.somewhere.com/ http://proxy2.somewhere.com/ http://proxy3.somewhere.com/

# Disable proxy (direct connection):
Proxy none
      

See also

AuthBasic, Server, Realm, URL.