config_http(1) - Linux man page

Name

config:http - Configures HTTP caching.

Synopsis

config:http [options]

Description

The config:http command enables you to configure HTTP caching through a variety of options. You must use one of the options described below.

Options

The following options are supported for the config:http command:

status <on | off>

Enables (on) or disables (off) the proxy from serving HTTP requests.

keep-alive-timeout-in <seconds>

Specifies the keep-alive timeout for inbound connections.

keep-alive-timeout-out <seconds>

Specifies the keep-alive timeout for outbound connections.

inactive-timeout-in <seconds>

Specifies the inactivity timeout for inbound connections.

inactive-timeout-out <seconds>

Specifies the inactivity timeout for outbound connections.

active-timeout-in <seconds>

Specifies the active timeout for inbound connections.

active-timeout-out <seconds>

Specifies the active timeout for outbound connections.

remove-from <on | off>

Enables (on) or disables (off) the removal of the From header from HTTP requests.

remove-referer <on | off>

Enables (on) or disables (off) the removal of the Referer header from HTTP requests.

remove-user <on | off>

Enables (on) or disables (off) the removal of the User header from HTTP requests.

remove-cookie <on | off>

Enables (on) or disables (off) the removal of the Cookie header from HTTP requests.

remove-header <string>

Specifies the name of a header to remove from HTTP requests.

insert-ip <on | off>

Enables (on) or disables (off) the insertion of the client IP address into HTTP requests.

remove-ip <on | off>

Enables (on) or disables (off) the removal of the client IP address from HTTP requests.

proxy <fwd | rev | fwd-rev>

Specifies HTTP proxying in forward, reverse, or forward and reverse simultaneously.

Examples

Example 1. Enabling the proxy to serve HTTP requests

traffic_shell> config:http on
traffic_shell>

Example 2. Specifying the keep-alive tiemout for inbound requests

traffic_shell> config:http keep-alive-timeout-in 10
traffic_shell>

Example 3. Specifying removal of the From header from HTTP requests

traffic_shell> config:http remove-from on
traffic_shell>

Example 4. Specifying forward proxy mode for HTTP

traffic_shell> config:http fwd
traffic_shell>

See Also

show:http, show:http-stats, show:http-trans-stats